zhong: 怎么样将游标的值@TableName当成一个字符串? [阅读: 298] 2008-04-01 09:41:46 SELECT @ExeSQL='SELECT COUNT(*) AS Expr1, '+@TableName+' as expr2 FROM dbo.'+@TableName 这样。