强壮的男人xyb.blog.chinaunix.net
hhuxyb
全部博文(7)
2011年(7)
sunxg77
分类: Oracle
2011-09-16 11:34:26
现在t2表中的name字段要根据t1表中的name更新;
update t2 set name=(select name from t1 where t1.id=t2.id) where exists (
select id from t1 where t2.id=t1.id);
select * from t2
id name loc
1 a a12 b b23 c c3
上一篇:Oracle type初始化
下一篇:Oracle分析函数(同比,环比,累计,基比)
登录 注册