sql中的select语句
来源:百度知道 编辑:UC知道 时间:2024/05/11 18:58:03
select 中的with ties怎么用,能帮我举个例子吗?
谢谢!
谢谢!
选取 TOP N 时,选出平手的所有记录
例如一组数据
field1
1 2 3 3 5
select top 3 field1 from table
得到的结果只有三个 2 3 5
而select top 3 field1 with ties from table
得到的结果有四个 2 3 3 5
select top 3 field1 from table
得到的结果只有三个 2 3 5
而select top 3 field1 with ties from table
得到的结果有四个 2 3 3 5