数据库A下有表a b c d e f g
请问怎样同时灰增加表字段DATE
------解决方案--------------------
select ' alter table '+name+' add [date] datetime ' from sys.tables where type ='U'
出来的结果,再执行一次即可。
select ' alter table '+name+' add [date] datetime ' from sys.tables where type ='U'