会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
白小白学IT
博客园
首页
新随笔
联系
订阅
管理
2021年11月4日
MySQL数据中每隔几行取一条数据
摘要: select * from (select @n:=@n+1 as n, a.* from (select * from tablename order by id desc)a,(select @n:=0)b)c where c.n%2=1 limit 10 首先 :select @n:=@n+1
阅读全文
posted @ 2021-11-04 14:16 白小白学IT
阅读(1061)
评论(0)
推荐(0)
公告