摘要: MySQL 查询结果带行号 select a, @i := @i + 1 as b from (select 'x' as a union all select 'y' as a union all select 'z' as a) a, (select @i := 0) b a b x 1 y 2 阅读全文
posted @ 2020-10-20 18:56 illmatic 阅读(157) 评论(0) 推荐(0) 编辑