MySql 实现 Oracle row_number 函数排序
select
@rownum:=@rownum + 1 as rownum,a.*
from
(select @rownum:=0,u.* from s_user u ) a
MySql 实现 Oracle row_number 函数排序
select
@rownum:=@rownum + 1 as rownum,a.*
from
(select @rownum:=0,u.* from s_user u ) a