一一对应的更新:
update student set (name,id )=
(select name ,id from (select student.rowid rd,student1.name,student1.id from student1,student where student1.int_id =student.int_id) tmp
where student.rowid=tmp.rd);
commit;
update student set (name,id )=
(select name ,id from (select student.rowid rd,student1.name,student1.id from student1,student where student1.int_id =student.int_id) tmp
where student.rowid=tmp.rd);
commit;
解决方案 »
- 求sql语句,为新添加的列更新数据!
- 怎么查看oracle归档日志dbf格式的内容呢?
- 安装oracle数据库,没有安装SQL,要使用opendatasource,需要什么安装什么驱动?
- 100分求一存储过程
- 急!!!请教rman恢复问题,有知道的朋友麻烦帮帮忙!在线等!
- linux下如何启动oracle!
- oracle表中含有blob字段导出导入问题?
- 关于透明网关的问题
- 高手请进,一个简单的问题!!!
- oracle的错误:ora-01041:internal error, hostdef extension doesn't exist.
- 与数据库的连接怎么会断呢?如何自动连接到数据库?
- 查找两个表中不同的数据
using table2
on table1.column=table2.column
when matched then
update
co1=xxx
when not matched then
into into .... values ....