关于分页存储的问题
DECLARE @type varchar(50) ............1DECLARE @prec int ...........2
SELECT @type=t.name, @prec=c.prec ...3
FROM sysobjects o 。。。。。。。。。。。。。4
JOIN syscolumns c on o.id=c.id .............5
JOIN systypes t on c.xusertype=t.xusertype ...........6
WHERE o.name = @SortTable AND c.name = @SortName...........7
IF CHARINDEX('char', @type) > 0
SET @type = @type + '(' + CAST(@prec AS varchar) + ')'
请哪位高手讲解一下每段代码的意思,特别是第5行和第六行是什么意思,谢谢指教!