SQL2008-中不想插入从复记录

If not exists (SELECT ID FROM StuffAgitationYield where EMAgitation_ID=1 and YieldDateTime'2012-06-13 00:00:00' and TraySerial=3)

begin

end;

 

//if not exists,即如果不存在。就执行begin end;中间SQL。

posted on 2015-07-12 10:12  疯狂delphi  阅读(257)  评论(0编辑  收藏  举报

导航