sql server添加表中字段脚本

declare @tableId int
set @tableId = object_id('Atmonthd')

 if not exists (
	select * from  syscolumns 
	where id = @tableId
	and name = 'OTShift_Hours'
)
begin	
	alter table Atmonthd
	add OTShift_Hours float
end
posted on 2010-03-24 11:53  聪明的大熊  阅读(3236)  评论(0编辑  收藏  举报