日期:2014-05-18 浏览次数:20716 次
if exists (select 1 from A where id = ??) begin update A set ...... where id = ?? end else begin insert into A select .... end if not exists (select 1 from B where id = ??) begin insert into b select .... end ------解决方案--------------------