首页 > 数据库技术 > 详细

postgresql update returning

时间:2017-09-07 16:05:01      阅读:329      评论:0      收藏:0      [点我收藏+]

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

原文:http://www.cnblogs.com/cdyboke/p/7490077.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!