如何判断数据表中是否存在某个字段????? if not exists(select 1 from syscolumns where id=object_id(table1) and name='c')begin alter table table1 add C intend 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if not exists (select name from syscolumns where id=object_id('table1') and name='c')begin alter table table1 add dd int end 不好意思 发错啦,更正一下if not exists (select name from syscolumns where id=object_id('table1') and name='c')begin alter table table1 add c varchar(8) end 一个关于 rollup 的问题,请详解 数据库结构复制的问题 如何通过已经有的ldf和mdf文件创建一个新的数据库呢 这个麻烦的问题,看你晕不晕 sql 2005 连接错误18456 执行目录下的所有存储过程 查询结果怎样赋值给一个变量? 帮我解决一个关于工作日计算的SQL问题吧~ 数据库的查询问题? 将SQL2000的数据库如何转到SQL7.0里呢? 难到我的统计。 SQLServer连接的奇怪问题。
begin
alter table table1
add dd int
end
begin
alter table table1
add c varchar(8)
end