以留下阳光为题的作文:select top 10 为什么返回16条记录

来源:百度文库 编辑:神马品牌网 时间:2024/05/09 01:57:43
select top 10 为什么返回16条记录,后面加上排序 order by date desc
就出现这个问题,不加的话就ok,这个问题怎么解决,谢谢了

晕 搞不懂!

sql server数据库 吧?

这样试试 (选对的一个)

select distinct top 10
或者
select top 10 distinct

select * from table_x order by top_field DESC limit 0,10;

用 distinct