update nanjing.nanjing_temp_table a
set (a.company_name, a.company_address)=(select b.company_name, b.company_address from nanjing.nanjing_temp_table b
where a.phone_number=b.phone_number and b.company_name is not null)
where exists(select 1 from from nanjing.nanjing_temp_table b
where a.phone_number=b.phone_number and b.company_name is not null)
and a.company_name is null
解决方案 »
- 关于Oracle定时作业的问题
- oracle分页查询时,这么能同时得到rowid?
- 一个oracle数据库连接的问题,我快急死了,帮帮忙吧!!!!
- 這sql8i有效,9i無效,如何改寫?
- 9i,怎样建一个自己的表空间?在SQL*PLUS怎么建?在console中能建吗?建库的时候好像有USER空间吗?但我在console中的方案中怎么没看到呢
- 怎么样将字段中的空格去掉!
- 又是一个密码的问题?(看大家能否解答)
- 一个简单问题
- △▲△▲△Update语句中能否有From、Group By、Order By等子句 ?△▲△▲△
- Oracle备份与恢复
- 请教 oracle中如何让纵表打成横表(有具体例子) 。
- Oracle rac 安装clusterware 出错oui-25031错误。请大虾赐教。
set (a.company_name, a.company_address)=(select b.company_name, b.company_address from nanjing.nanjing_temp_table b
where a.phone_number=b.phone_number and b.company_name is not null)
where exists(select 1 from from nanjing.nanjing_temp_table b
where a.phone_number=b.phone_number and b.company_name is not null)
and a.company_name is null
Error at line 1
ORA-00903: invalid table name
可还有多集的问题
update nanjing.nanjing_temp_table a
set (a.company_name, a.company_address)=(select b.company_name, b.company_address from nanjing.nanjing_temp_table b
where a.phone_number=b.phone_number and b.company_name is not null)
where exists(select 1 from nanjing.nanjing_temp_table b
where a.phone_number=b.phone_number and b.company_name is not null)
and a.company_name is null
Error at line 2
ORA-01427: single-row subquery returns more than one row