SQL常用语句

来源:互联网 发布:淘宝美工助理的简介 编辑:程序博客网 时间:2024/05/01 22:27
 

1: 列出数据库里的所有的表名

    Select name From Sysobjects where type='u'

2: 随机选出5条数据

   Select top 5 * From testTable order by newid();