sql查询。

1.sql = "Select top 10 * from tp ORDER BY id DESC

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条数据
 
原文地址:https://www.cnblogs.com/sosolili/p/4872498.html