Is there a Netezza equivalent to the MSSQL ROWVERSION or the Oracle ORA_ROWSCN? Essentially I'd like to know if a record changed and be confident that it changed. Using a checksum isn't reliable 100% of the time.
Sql-server – Netezza Equivalent to T-SQL ROWVERSION or PL/SQL ORA_ROWSCN
change-data-capturenetezzaoraclesql server
Related Question
- Rowversion Database Lock Performance in SQL Server
- SQL Server – What is the Infile SAS Equivalent?
- Copy ROWVERSION Value to Another Column on Insert in SQL Server
- Sql-server – n underling difference between TIMESTAMP and ROWVERSION when creating columns with each
- SQL Server 2014 – Why Outer Join with Rowversion Never Returns Null
- Netezza to Azure Synapse – Migrating Stored Procedures
Best Answer
I'm not sure about the
ROWVERSION
behaviour, butORA_ROWSCN
I believe would still change if you were to update a row with completely identical values. In other words, the row contents would remain the same but its SCN would be different.The only practically reliable way to detect the actual change in column values would be to calculate the row checksum or hash.
To answer your question though, consider using the
createxid
special column in Netezza: http://pic.dhe.ibm.com/infocenter/ntz/v7r0m3/topic/com.ibm.nz.dbu.doc/r_dbuser_data_types_ntz_internal.htmlAnd again, a changed
createxid
value would not necessarily mean that any column values have changed.