Mysql编辑工具中使用(Navicat查询结果显示行号)
select @rownum:=@rownum+1 as rownum,a.roleId from base_userroles a,(select @rownum:=0) t where a.roleId='admin';