sqlite3 top的查询及limit语法介绍

2023-12-07 0 1,015

其实,在sqlite3中没有top的语法结构,但在sqlite3中有相关的语法能实现跟top语法相同的功能,sqlite3 sql是用limit这样的语法来实现的; 如: 复制代码 代码如下: select * from table where name=\’_安静ゝ\’ order by id limit 0,10; 这个效果就相当于select top 10 * from table where name=\’_安静ゝ\’; 如果还有更精确的: 复制代码 代码如下: select * from table where name=\’_安静ゝ\’ order by date desc,id limit 0,10;

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 SQLite sqlite3 top的查询及limit语法介绍 https://www.u-9.cn/database/sqlite/122083.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务