Return updated row attributes on UPDATE

前端 未结 0 1071
温柔的废话
温柔的废话 2021-02-13 07:43

My query is as follow:

UPDATE t1 SET t1.foreign_key = (SELECT id FROM t2 WHERE t2.col = %s ) 
WHERE t1.col = %s

How do I return some attributes

相关标签:
回答
  • 消灭零回复
提交回复
热议问题