FROM syscolumns
WHERE (id = OBJECT_ID('表名称'))
ORDER BY colorder
有重复数据:
'Parameter_name' = name,
'Type' = type_name(user_type_id),
'Length' = max_length,
'Prec' = case when type_name(system_type_id) = 'uniqueidentifier' then precision
else OdbcPrec(system_type_id, max_length, precision) end,
'Scale' = OdbcScale(system_type_id, scale),
'Param_order' = parameter_id,
'Collation' = convert(sysname, case when system_type_id in (35, 99, 167, 175, 231, 239)
then ServerProperty('collation') end)
from sys.all_parameters where object_id = object_id('你的存储过程名称')
from [表名]
from [表名]) as tmp
WHERE RowNumber between 50 and 60;