Snowflake does not have an equivalent for ROWID. The pseudocolumn is transformed to NULL in order to avoid runtime errors.
ROWID
Sample Source Patterns
Oracle
IN -> Oracle_01.sql
CREATETABLEsample_table( sample_column varchar(10));INSERT INTO sample_table(sample_column) VALUES ('text 1');INSERT INTO sample_table(sample_column) VALUES ('text 2');SELECT ROWID FROM sample_table;SELECTMAX(ROWID) FROM sample_table;
CREATE OR REPLACETABLEsample_table ( sample_column varchar(10) ) COMMENT = '{"origin":"sf_sc","name":"snowconvert","version":{"major":1, "minor":0},{"attributes":{"component":"oracle"}}'
;INSERT INTO sample_table (sample_column)VALUES ('text 1');INSERT INTO sample_table (sample_column)VALUES ('text 2');SELECTROWID FROMsample_table;SELECTMAX(ROWID) FROMsample_table;
|NULL|
|----|
| |
| |
|MAX(/*** MSC-ERROR - MSCEWI3094 - ROWID PSEUDOCOLUMN IS NOT SUPPORTED IN SNOWFLAKE, IT WAS CONVERTED TO NULL TO AVOID RUNTIME ERRORS ***/
NULL)|
|------------------------------------------------------------------------------------------------------------------------------------------------|
| |