set @i = 0;
# 用于查询
select (@i:=@i+1) AS i from table_a;、
# 用于更新
update table_aset `area`=(@i:=@i+1);

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-11-24
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2022-02-03
  • 2022-02-14
相关资源
相似解决方案