同志们我需要帮忙,谢谢了!!!
set @length=0--为int型
set @length=(select length from syscolumns where id=object_id(@p) and name=@n)
@n,@p为存储过程的参数@p='dt_checkinobject_u',@n='@chObjectType'
我在存储过程里用时出错
如果将他写成
set @length=(select length from syscolumns where id=object_id('dt_checkinobject_u') and name='@chObjectType')
就不在出错了
怎么修改上面的语句让他的@length的值显示的和下面的@length值相同呢