标签:
Mysql编辑工具中使用(Navicat查询结果显示行号)
select @rownum:=@rownum+1 as rownum,a.roleId from base_userroles a,(select @rownum:=0) t where a.roleId=‘admin‘;
原文地址:http://www.cnblogs.com/xrhou12326/p/5345522.html