SELECT @row := @row + 1 as row, t.id FROM sgcorp_product t, (SELECT @row := 0) r where t.id not in(select product_id from sgcorp_pic)
http://database.51cto.com/art/201011/235142.htm
MySQL查询结果条数编号示例 mysql 查找结果中自动加序号列
阅读 30
2023-04-12
SELECT @row := @row + 1 as row, t.id FROM sgcorp_product t, (SELECT @row := 0) r where t.id not in(select product_id from sgcorp_pic)
http://database.51cto.com/art/201011/235142.htm
相关推荐
精彩评论(0)