mysql
weixin_44096941
这个作者很懒,什么都没留下…
展开
-
ES中sql对应的curl指令
must 相当于andshould 相当于orgte>= gt> lte<= lt<1.sql对于andselect * from test1 , test2 where ( occur_time between 1634916697000 and 1634920297000 ) and ip =‘11.11.11.11’ and sp= ‘22.22.22.22’ order by time desc limit 8 offset 0对应的布尔查询curl -XPOS原创 2021-10-27 10:59:36 · 547 阅读 · 0 评论 -
数据库中limit的 用法
limit 的用法 查询第m页 n条1.limit ?,? 和 2.limit ? offset ?limit中第一个参数 (m-1)*n,第二个参数是n ,也就是查第2页,8条数据,limit 8,8,从数据库起始位置8,查询8条数据,是索引位置为8-15 ,数据库索引是从0位置开始limit中第一个参数 是n 第二个参数(m-1)*n...原创 2021-10-25 19:47:39 · 1117 阅读 · 0 评论