update table1 set f1=b.f1,f2=b.f2,f3=b.f3
from table1 a,bable2 b where a.id=b.id
--------->>>>
update table1
set f1=(select b.f1 from bable2 b,table1 a where a.id=b.id),
f2=(select b.f2 from bable2 b,table1 a where a.id=b.id),
f3=(select b.f3 from bable2 b,table1 a where a.id=b.id)
where exist(select 1 from bable2 b,table1 a where a.id=b.id)
from table1 a,bable2 b where a.id=b.id
--------->>>>
update table1
set f1=(select b.f1 from bable2 b,table1 a where a.id=b.id),
f2=(select b.f2 from bable2 b,table1 a where a.id=b.id),
f3=(select b.f3 from bable2 b,table1 a where a.id=b.id)
where exist(select 1 from bable2 b,table1 a where a.id=b.id)
解决方案 »
- SQL如何批量更新某列中一个字符为另一个字符
- 求一查询语句的写法?
- 执行结果在哪儿?
- 关于oracle表空间的问题,真是奇怪
- 我们通常都配置oracle client目录里面的tnsnames.ora,但是在oracle的network\admin里面也有同名文件,这是做什么用呢?
- 重装系统后,可否不用重新安装orical而直接将以前的安装恢复并能够使用(以前的安装不在系统盘),还有大家用什么工具管理开发orical
- 凭证检索失败,怎么解决
- 求救,一个查询sql的问题,我困惑好久
- 存储过程的一个问题?
- ********ORACLE 8 的奇怪问题,在线等待,解决马上给分!!**********
- trim()为什么不能trim掉空格?
- 【超简单】 在pl/sql里显示小数点字符是逗号.
update table1
set f1=(select b.f1 from bable2 b,table1 a where a.id=b.id),
f2=(select b.f2 from bable2 b,table1 a where a.id=b.id),
f3=(select b.f3 from bable2 b,table1 a where a.id=b.id);
where exist(select 1 from bable2 b,table1 a where a.id=b.id)
set
f1=(select b.f1 from bable2 b,table1 a where a.id=b.id),
f2=(select b.f2 from bable2 b,table1 a where a.id=b.id),
f3=(select b.f3 from bable2 b,table1 a where a.id=b.id);