select top 10 为什么返回16条记录
来源:百度知道 编辑:UC知道 时间:2024/06/11 09:11:29
select top 10 为什么返回16条记录,后面加上排序 order by date desc
就出现这个问题,不加的话就ok,这个问题怎么解决,谢谢了
就出现这个问题,不加的话就ok,这个问题怎么解决,谢谢了
晕 搞不懂!
sql server数据库 吧?
这样试试 (选对的一个)
select distinct top 10
或者
select top 10 distinct
select * from table_x order by top_field DESC limit 0,10;
用 distinct