xsb Oracle Blog
ҽ
л
ҵBlog
¹鵵...
·...
Ķ...
ͳ...
վ...
Դ
===========================================================
Retrieve rows in order inserted updated (ora_rowscn)
===========================================================

upgrading to Oracle 10g and using
CREATE TABLE ... ROWDEPENDENCIES.

That would be better called last touched, not inserted, because for example updates also affects ora_rowscn.


create table tt(id number);
insert into tt values(1);
select ora_rowscn from tt;
commit;
select ora_rowscn from tt;
insert into tt values(2);
select ora_rowscn from tt;
commit;
select ora_rowscn from tt;

create table ttt (id number) rowdependencies;
insert into ttt values(1);
select ora_rowscn from ttt;
commit;
select ora_rowscn from ttt;
insert into ttt values(2);
select ora_rowscn from ttt;
commit;
select ora_rowscn from ttt;
select to_char(scn_to_timestamp(ora_rowscn),'yyyymmdd hh24:mi:ssxff') from ttt;

xsb :2007.05.09 11:49 ::: ( Oracle ) ::Ķ:(321) :: (0) :: (0)



ڴ

ƺ

ַѡ

ҳѡ

authimage