postgresql update returning

Posted dy blog

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了postgresql update returning相关的知识,希望对你有一定的参考价值。

Perform the same operation and return the updated entries:

UPDATE weather SET temp_lo = temp_lo+1, temp_hi = temp_lo+15, prcp = DEFAULT
  WHERE city = ‘San Francisco‘ AND date = ‘2003-07-03‘
  RETURNING temp_lo, temp_hi, prcp;

update returning的是更新后的内容

以上是关于postgresql update returning的主要内容,如果未能解决你的问题,请参考以下文章