MySQL语句小集锦

1.在查询的语句前加上序列号table

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