SET @cmd='SELECT TOP '+cast(@page_record AS NVARCHAR)+' '+@fieldlist+' FROM '+@tablename+' WHERE '+@where+' '+@orderby
SQL 如何把变量 转换为字符类型 利用cast
cast(@page_record AS NVARCHAR)
SET @cmd='SELECT TOP '+cast(@page_record AS NVARCHAR)+' '+@fieldlist+' FROM '+@tablename+' WHERE '+@where+' '+@orderby
SQL 如何把变量 转换为字符类型 利用cast
cast(@page_record AS NVARCHAR)