mysql 查询结果带序号

mac2025-02-27  5

1.sql语句

select (@i:=@i+1) _index,a.* from a,(select @i:=0) vars

2.结果

最新回复(0)