sqlserver2005 比较实用的sql
复制表select * into Users2 from Users将Users表的结构,内容复制到Users2 (Users2 还未创建)
随机取出10条数据select top 10 * from tablename order by newid()
列出数据库里所有的表名select name from sysobjects where type='U'