请教oracle高手 一个 update 问题,有关多表数据更新的
有3个表t1 列 a,b,c,dt2 列 x,yt3 列 e,f,g,h关系如下, t1通过t2与t3连接select t1.a,t1.b,t1.c,t21.d, t2,x,t2.y, t3.e,t3.f,t3.g,t3.h from t1 t1,t2 t2,t3 t3where t1.a=t2.x and t2.y=t3.... 展开
其他答案
update t1 t1 set (t1.b,t1,c,t1.d)=(select t3.f,t3.g,t3.h from t2 t2,t3 t3 where t2.y=t3.e and t1.a=t2.x);t1,t2,t3的关联都是唯一关联,否则会报多行更新错误,另外视图的处理跟这个一样。
2010-09-01 02:39
来自北京市
赞(0)点赞赞(0)举报
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。




