日期:2014-05-19  浏览次数:20523 次

请教一条sql
如何用一条sql实现当b表有某条记录时才在a表中加一条新记录?
谢谢

------解决方案--------------------
insert into a表 ....
where exists (select 1 from b表 where ...)