max(ROWID) => something to remember

Sometimes we forget some basic concepts. So do I (sometimes).

To retrieve the latest record of a table it’s not ALWAYS correct to use the max(rowid) of a table.

The rowid is an ID generated based on file/block/slot .

The only method to make sure we take the last record is a having a column with a timestamp or a sequence.

Leave a reply

You must be logged in to post a comment.