--distince关键字表示消去重复行
select count(distinct [state]) from authors
--使用*查询所有行数,没有消去重复行,也不允许使用distinct关键字
select count(*) from authors
--等到10:27:40时执行查询
waitfor time '10:27:40'
select * from authors
--等待1分20秒执行查询
waitfor delay '00:01:20'
select * from authors
可能用到的查询语句
最新推荐文章于 2020-06-18 16:49:20 发布