oracle 表 自动值,oracle根据一张表的值更新另一张表的值 简单SQL实现

一,利用SQL语句,直接更新

1.建表语句:

create table table1( idd varchar2(10) , val varchar2(20) );

create table table2( idd varchar2(10), val varchar2(20) );

2.插入数据:

insert into table1 values ('01','1111');

insert into table1 values ('02','222');

insert into table1 values ('02','2222');

insert into table1 values ('03','3333');

insert into table1 values ('04','4444');

insert into table1 values ('06','6666');

commit;

insert into table2 values ('01','aaaa');

insert into table2 values ('02','bbbb');

insert into table2 values ('03','cccc');

insert into table2 values ('04','dddd');

insert into table2 values ('05','eee');

c

你可能感兴趣的:(oracle,表,自动值)