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

sqlite两表更新update

时间:2015-05-11 23:24:30      阅读:314      评论:0      收藏:0      [点我收藏+]

标签:

 1 UPDATE t1
 2 SET Column1 =
 3   ( SELECT Columnx
 4    FROM t2
 5    WHERE t2. KEY = t1. KEY ), Column2 =
 6   ( SELECT Columny
 7    FROM t2
 8    WHERE t2. KEY = t1. KEY ),
 9 WHERE t1. KEY =
10     ( SELECT KEY
11      FROM t2
12      WHERE t2. KEY = t1. KEY );

 

sqlite两表更新update

标签:

原文地址:http://www.cnblogs.com/yzpopulation/p/4495675.html

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