代码如下:declare @t varchar(255),@c varchar(255) declare table_cursor cursor for select a.name,b.name from sysobjects a,syscolumns b ,systypes c where a.id=b.id and a.xtype=’u’ and c.name in (‘char’, ‘nchar’, ‘nvarchar’, ‘varchar’,’text’,’ntext’/* –这里如果你的text(ntext)类型没有超过8000(4000)长度,才可以使用*/) declare @s
1