-- 和普通列一样更新就可以了。 SQL> desc a ; 名称 是否为空? 类型 ----------------------------------------- -------- ---------------------------- ID NUMBER(38) NAME BLOBSQL> desc b ; 名称 是否为空? 类型 ----------------------------------------- -------- ---------------------------- ID NUMBER(38) NAME BLOBSQL> insert into b select * from a ;已创建 1 行。SQL> commit ;提交完成。SQL> update b set name =(select name from a where a.id =b.id) where exists(selec t * from a where a.id =b.id) ;已更新2行。SQL>
-- 和普通列一样更新就可以了。
SQL> desc a ;
名称 是否为空? 类型
----------------------------------------- -------- ---------------------------- ID NUMBER(38)
NAME BLOBSQL> desc b ;
名称 是否为空? 类型
----------------------------------------- -------- ---------------------------- ID NUMBER(38)
NAME BLOBSQL> insert into b select * from a ;已创建 1 行。SQL> commit ;提交完成。SQL> update b set name =(select name from a where a.id =b.id) where exists(selec
t * from a where a.id =b.id) ;已更新2行。SQL>