sql - Does Oracle have a time-to-live feature for rows? -
in cassandra used using ttl
clause of upserts sets number of seconds after upserted data deleted.
does oracle have feature this? haven't been able find it.
there ways implement feature, don't believe built in. easiest way have createdat
column in table specifies when row has been inserted. then, create view recent rows, recent day:
create view v_table select t.* table t t.createdat >= sysdate - 1;
this fixes data access side. delete rows, need additional job periodically delete old rows in table.
Comments
Post a Comment