使用 inner join

 

update picture inner join (select iteration+1 as i from picture where pic_id=453) c set labels="56,57,58" , iteration=c.i where pic_id=453;

 

如上例子:

完成更新  picture.labels 字段 & picture.iteration自增 的两个功能。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-11-27
  • 2021-05-15
  • 2021-10-05
猜你喜欢
  • 2021-10-28
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
相关资源
相似解决方案