会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Never Settle
博客园
首页
新随笔
联系
管理
订阅
2018年7月16日
mysql查询奇数行或者偶数行数据
摘要: select * from (select @rownum := @rownum+1 as row_num, t.* from 表名 t,(select @rownum:=0) tmp_table order by CreateTime limit 10) t where t.row_num%2=1
阅读全文
posted @ 2018-07-16 15:06 不将就!
阅读(6036)
评论(0)
推荐(0)
编辑
公告