使用 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自增 的两个功能。
使用 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自增 的两个功能。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。