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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -