oracle 中的一个update 问题
如下:
表aaa
a b
1 1
2 1
3 1
4 1
5 1
表bbb
a b
1 0
2 0
3 0
4 0
对表aaa做update 在sql server中 可以实现: update aaa set aaa.b=bbb.b from aaa right join bbb on aaa.a=bbb.a
update后
表aaa
a b
1 0
2 0
3 0
4 0
5 1
但是oracle中实现不了 ,会报错,请问在oracle中要如何实现
相关推荐
oracle执行update语句时卡住问题分析及解决办法
问题 开发的时候debug到一条update的sql语句时程序就不动了,然后我就在plsql上试了一下,发现plsql一直在显示正在执行,等了好久也不出结果。但是奇怪的是执行其他的select语句却是可以执行的。 原因和解决方法 这种只有update无法执行其他语句可以执行的其实是因为记录锁导致的,在oracle中,执行了update或者insert语句后,都会要求commit,如果不commit却强制关闭连接,oracle就会将这条提交的记录锁住。由于我的java程序中加了事务,之前debug到一半的时候我强制把工程终止了,这样就导致没有执行事务提交,所以oracle将代码中updat
Oracle9.2.0.4 在RDHL AS 4update 2的安装手册
Oracle9.2.0.4 在RDHL AS 4update 2的安装手册,这个东西我在Dell的机器上装得好辛苦,所以给大家共享,或许对你有帮助!
Oracle_Trigger_及_Oracle_常见问题解决方法
Oracle_Trigger_及_Oracle_常见问题解决方法 Oracle_Trigger_及_Oracle_常见问题解决方法
Oracle Solaris 8 Solaris 8 Maintenance Update 3 Installation Gui
Oracle Solaris 8 Solaris 8 Maintenance Update 3 Installation Guide-59
ORACLE多表关联的update语句
在某个业务受理子系统BSS中, --客户资料表 create table customers ( customer_id number(8) not null, -- 客户标示 city_name varchar2(10) not null, -- 所在城市 customer_type char(2) not null, -- 客户类型 ... ) create unique index PK_customers on customers (customer_id) 由于某些原因,客户所在城市这个信息并不什么准确,但是在 客户服务部的CRM子系统中,通过主动服务获取了部分客户20%的所在 城市等准确信息,于是你将该部分信息提取至一张临时表中: create table tmp_cust_city ( customer_id number(8) not null, citye_name varchar2(10) not null, customer_type char(2) not null )


基础和管理

