create proc Add_field (@table_name char,@type char,@length int,@isnull char)
as
alter table @table_name add comments @type @length @isnull
语法检查说在第三行@table_name 附近有错误,请大家看看
as
alter table @table_name add comments @type @length @isnull
语法检查说在第三行@table_name 附近有错误,请大家看看
as
declare #sql varchar(600)
set @sql='alter table '+@table_name+' add comments '+@type+'('+cast(@length as varchar)+') '+@isnull'exec(@sql)