Mysql查询序号

来源:互联网 发布:betterzip mac 密钥 编辑:程序博客网 时间:2024/05/17 02:35
  1. select (@rowNO := @rowNo+1) AS rowno,zhuanfaContent,content,sendDate,sendTime,zhuanfaAuthor,zhuanfaLink from (SELECT zhuanfaContent,content,sendDate,sendTime,zhuanfaAuthor,zhuanfaLink  FROM t_toefldata_zhuanfa  where sendDate = '2012-04-21') a,(select @rowNO :=0) b  
0 0
原创粉丝点击