Mysql 模拟自增主键

select (@i:=@i+1) No,t.* from tableName t,(select @i:=0) init

posted @ 2021-12-22 14:17  雾里看花的少年  阅读(27)  评论(0编辑  收藏  举报