SELECT @rownum:=@rownum+1,t.* rownum From
(SELECT @rownum:=0,cq_fzz_imagedata.* FROM cq_fzz_imagedata ORDER BY house_no ) t
mysql 没有rownum 又想查出来内部id
最新推荐文章于 2024-04-01 21:34:28 发布
SELECT @rownum:=@rownum+1,t.* rownum From
(SELECT @rownum:=0,cq_fzz_imagedata.* FROM cq_fzz_imagedata ORDER BY house_no ) t