MYSQL增加自增列并更新

SET @mycnt = 0;
UPDATE xxxxx
SET RowNum=(@mycnt := @mycnt + 1)

posted on 2016-07-14 13:33  allenjsl  阅读(1126)  评论(0编辑  收藏  举报

导航