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。

原文地址:https://www.cnblogs.com/FKdelphi/p/4640586.html