update table_a
set a_step_name=( select
from table_b,table_c
where table_b.b_flowid=table_c.c_flowid
and table_a.a_moudle = table_b.b_moudle
and table_a.a_type=table_b.a_type
and rownum <=1)
set a_step_name=( select
from table_b,table_c
where table_b.b_flowid=table_c.c_flowid
and table_a.a_moudle = table_b.b_moudle
and table_a.a_type=table_b.a_type
and rownum <=1)
解决方案 »
- Oracle数据备份语句
- 关于SQL语句的重用技术
- 求讲解oracle所有函数文档
- 急!急!急!请求cpu占用100%资源问题??
- 关于exception的问题
- (问题解决多给分)为何在我的IIS中启动不了默认网站,我机器上装有oracle 服务器数据库,是不是他们互相冲突呀
- ORA-01000:超出打开游标的最大数
- oracle转义字符
- 求一條sql,高手請進!
- 请教关于powerdesigner中sequence页布局变混乱后如何还原?非人为原因去变更的,不清楚为什么会变化。
- [求助]试前用oracle9i结果碰到极为头大的问题,有谁能帮我,在线等,急啊~~~~~
- ORACLE数据库当掉.
update table_a
set a_step_name=( select c_step_name
from table_b,table_c
where table_b.b_flowid=table_c.c_flowid
and table_a.a_moudle = table_b.b_moudle
and table_a.a_type=table_b.a_type
and rownum <=1)
update table_a
set a_step_name=( select c_step_name
from table_b,table_c
where table_b.b_flowid=table_c.c_flowid
and table_a.a_moudle = table_b.b_moudle
and table_a.a_type=table_b.a_type
and rownum <=1)
table_b和table_c为一对多的关系."
那么假设3个table_a的记录对应一个table_b记录,一个table_b记录对应10个table_c的记录.
或者10个table_a的记录对应一个table_b记录,一个table_b记录对应3个table_c的记录.怎样把table_c的记录放入table_a?
不知道楼主是否想要这样的结果?