yanhechao 2021-12-28 16:24:55

mysql 查询数据时,自动为结果编上序号

select (@i:=@i+1) i, username from sys_users ,(SELECT @i:=0) as i

首页 - Wiki
Copyright © 2011-2023 iteam. Current version is 2.107.0. UTC+08:00, 2023-02-08 04:55
浙ICP备14020137号-1 $访客地图$