摘要:
1.字段是否存在if((select count(*) from syscolumns where name = '字段名' and id=(select id from sysobjects where name='表名'))=0)beginend2.表是否存在if exists (select * from sysobjects where id = OBJECT_ID('表名') and OBJECTPROPERTY(id, 'IsUserTable') = 1) DROP TABLE 表名 阅读全文
posted @ 2011-12-12 09:57
张扬个性,敢为天下先
阅读(794)
评论(0)
推荐(0)
浙公网安备 33010602011771号