mysql排序

set @x = 0;
select

@x := ifnull(@x , 0) + 1 as rownum

from table,

order by col

你可能感兴趣的:(mysql排序)