生成数据库所有表的查询语句 select 'select * from dbo.' + [name] from dbo.sysobjects where xtype = 'U' order by [name]