这个就简单了

set @r:=0;
update t_communicate_plan set id=(@r:=@r+1);

定义变量,根据表进行更新。

相关文章:

  • 2021-07-17
  • 2019-11-05
  • 2022-12-23
  • 2021-10-25
  • 2021-12-02
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2021-09-27
  • 2022-12-23
相关资源
相似解决方案