Is it possible to access ORA_ROWSCN
pseudo-column in the body of BEFORE
triggers? I'm thinking about storing this value in the table itself to emulate SQLServer rowversion
behaviour.
1 Answer
It doesn't seem to be possible (even if Oracle itself populates the value before launching BEFORE UPDATE trigger) - referring to :NEW.ora_rowscn
in the trigger body generates error, select ora_rowscn from table1 in the trigger
causes mutating trigger error.
ora_rowscn
- why do you need to store it again in the table?ora_rowscn
in the table as a separate column (similar to how SQLServer'srowversion
works, so I don't need to change queries that use this feature while migrating from one RDMS to another).rowdependencies
of course?rowdependencies