码迷,mamicode.com
首页 > 数据库 > 详细

postgresql update returning

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

标签:and   cisco   return   where   form   postgres   lis   postgre   list   

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

标签:and   cisco   return   where   form   postgres   lis   postgre   list   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!