zhong: [提问]这个SQL语句怎么写? [阅读: 350] 2008-04-01 08:54:53 我想查询一个库里所有表的记录条数,用游标怎么写循环语句? 定义了一个游标, DECLARE tblname CURSOR FOR select name from dbo.sysobjects where xtype = 'u' order by name 怎么让游标的值自动填进去? SELECT COUNT(*) AS Expr1 FROM 游标