SqlServer学习-常用的sql语句-持续更新中
1.获取数据库下的所有表名
select TABLE_NAME from information_schema.tables where TABLE_TYPE='Base TABLE'
2.随机取出10条数据
select top(10) * from T_MeterCard order by newid()
更多精彩内容请看:http://www.cnblogs.com/2star>
1.获取数据库下的所有表名
select TABLE_NAME from information_schema.tables where TABLE_TYPE='Base TABLE'
2.随机取出10条数据
select top(10) * from T_MeterCard order by newid()