请教一条sql
如何用一条sql实现当b表有某条记录时才在a表中加一条新记录?
谢谢
[解决办法]
insert into a表 ....
where exists (select 1 from b表 where ...)
发布时间: 2012-01-30 21:15:58 作者: rapoo
请教一条sql
如何用一条sql实现当b表有某条记录时才在a表中加一条新记录?
谢谢
[解决办法]
insert into a表 ....
where exists (select 1 from b表 where ...)