Version Query Pseudocolumns
The version query pseudocolumns are valid only in Oracle Flashback Version Query, which is a form of Oracle Flashback Query. The version query pseudocolumns are:
-
VERSIONS_STARTSCNandVERSIONS_STARTTIME: Starting System Change Number (SCN) orTIMESTAMPwhen the row version was created. This pseudocolumn identifies the time when the data first had the values reflected in the row version. Use this pseudocolumn to identify the past target time for Oracle Flashback Table or Oracle Flashback Query. If this pseudocolumn isNULL, then the row version was created before start. -
VERSIONS_ENDSCNandVERSIONS_ENDTIME: SCN orTIMESTAMPwhen the row version expired. If the pseudocolumn isNULL, then either the row version was current at the time of the query or the row corresponds to aDELETEoperation. -
VERSIONS_XID: Identifier (aRAWnumber) of the transaction that created the row version. -
VERSIONS_OPERATION: Operation performed by the transaction:Ifor insertion,Dfor deletion, orUfor update. The version is that of the row that was inserted, deleted, or updated; that is, the row after anINSERToperation, the row before aDELETEoperation, or the row affected by anUPDATEoperation.For user updates of an index key, Oracle Flashback Version Query might treat an
UPDATEoperation as two operations,DELETEplusINSERT, represented as two version rows with aDfollowed by anIVERSIONS_OPERATION.
See Also:
-
flashback_query_clause for more information on version queries
-
Oracle Database Development Guide for more information on using Oracle Flashback Version Query
-
Appendix C in Oracle Database Globalization Support Guide for the collation derivation rules for values of the
VERSIONS_OPERATIONpseudocolumn