mysql 查询结果集加序号

select
(@i:=@i+1) as i,
table1.*
from
table1 , (select @i:=0) temp

posted @ 2022-08-10 16:13  赵钱富贵  阅读(93)  评论(0编辑  收藏  举报