当前位置:Gxlcms > mysql > mysql发生行号

mysql发生行号

时间:2021-07-01 10:21:17 帮助过:12人阅读

mysql产生行号 mysql产生行号: set @n = 0;update tbl_material_stone a, (select stone_id,@n:=@n+1 r from tbl_material_stone order by stone_id) b set no = r where a.stone_id =b.stone_id; ?

mysql产生行号

mysql产生行号:

set @n = 0;
update tbl_material_stone a, (select stone_id,@n:=@n+1  r from tbl_material_stone order by stone_id) b  set no = r where a.stone_id =b.stone_id;

?

人气教程排行