bitsCN.com
mysql查找结果中自动加序号列
查找mysql 数据库 自动 添加 序号 字段列1,2,3,4..........
就像这样。。
[sql] 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
查找表
“t_toefldata_zhuanfa”
bitsCN.com
本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉
本文系统来源:php中文网