create table test_table (id number(10),name varchar2(10)) row archival
Table created.
insert into test_table (id,name) values (1,'name1')
1 row(s) inserted.
insert into test_table (id,name) values (2,'name2')
1 row(s) inserted.
insert into test_table (id,name) values (3,'name3')
1 row(s) inserted.
insert into test_table (id,name) values (4,'name4')
1 row(s) inserted.
select * from test_table
ID | NAME |
---|---|
1 | name1 |
2 | name2 |
3 | name3 |
4 | name4 |
update test_table set ora_archive_state = 1 where id = 1
1 row(s) updated.
commit
Statement processed.
select * from test_table where id = 1
no data found
select * from test_table t left join test_table t1 on t.id = t1.id and t.id = 1
ID | NAME | ID | NAME |
---|---|---|---|
4 | name4 | - | - |
1 | name1 | - | - |
3 | name3 | - | - |
2 | name2 | - | - |
select * from test_table t left join test_table t1 on (t.id = t1.id) where t.id = 1
ID | NAME | ID | NAME |
---|---|---|---|
1 | name1 | - | - |
select * from test_table t join test_table t1 on t.id = t1.id and t.id = 1
no data found