首頁  >  文章  >  資料庫  >  mysql发生行号

mysql发生行号

WBOY
WBOY原創
2016-06-07 16:25:301004瀏覽

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;

?

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn