SELECT @rowno:=@rowno+1 as rowno,u.* from users u,(select @rowno:=0) t where @rowno<3
MySQL 实现行号
最新推荐文章于 2024-07-29 11:25:31 发布
SELECT @rowno:=@rowno+1 as rowno,u.* from users u,(select @rowno:=0) t where @rowno<3