if exists (select *from sysobjects where name='shangpininsert ')

给大家一个链接  if exits sql

http://www.cnblogs.com/slcc/archive/2012/04/13/2445308.html

你可能感兴趣的:(sql,if,exits)