在table1表里查询a字段大于3的记录,然后这些结果记录降序的排列后的前5条记录。
select top 5 * from table1 where a > 3 order by 排序字段 desc
不好意思,请问mysql的该怎么写呢?
select * from table1 where a>3 order by 排序 desc limit 5