mysql中给查询的结果添加序号列

select    (@i:=@i+1)   as   i ,table_name.*   from   table_name ,(select   @i:=0)   as   it
相关文章
相关标签/搜索