SELECT
( @rowNO := @rowNo + 1 ) AS rowno,
A.*
FROM
( SELECT * FROM t_user ) a,
( SELECT @rowNO := 0 ) b

05-11 21:55