当前位置:Gxlcms > 数据库问题 > sql查询。

sql查询。

时间:2021-07-01 10:21:17 帮助过:27人阅读



select是查询的意思
top是指上面的
select top 10意思就是查询前十个
order by id desc 意思就是根据ID经行降序排列

整个的意思就是
根据id降序排列,查询出前10条数据



2.select * from say order by id desc limit 100,15

select*from     --查询say表
order by id desc --按id列大小降序排列
limit 100,15 --从查询的结果中取出一条数据,也就是从第100条开始取出15条数据
 

sql查询。

标签:

人气教程排行