SQL语句查询倒数1-4条数据

查询倒数1-4条数据 今天弄了半个小时才做出自己需要的效果 (当然也可以查询非倒数的1–4条数据) SQL语句: 1、不需要写字段,直接根据表来查询倒数数据 select * from commoditytb order by commoditytb.commodityTypeId desc limit 0,4 【order by commoditytb.commodityTypeId desc
相关文章
相关标签/搜索