VARCHAR2 Data Type
Description
The
VARCHAR2
data type specifies a variable-length character string in the database character set. (Oracle SQL Language Reference VARCHAR2)
As denoted in the Oracle documentation, size in VARCHAR2 data type is a length constraint and should not be confused with capacity. Total characters that can be stored in a VARCHAR2 may vary according to the database character set and configuration, but commonly the maximum size allowed is 4000.
VARCHAR2 is translated to Snowflake VARCHAR which can store a bigger number of bytes/characters by default. Either way, the memory used is variable using the size of the value stored in the column as same as in Oracle.
Sample Source Patterns
Varchar2 data types in Create Table
Oracle
IN -> Oracle_01.sql
Snowflake
OUT -> Oracle_01.sql
Retrieving data from varchar columns
Oracle
IN -> Oracle_02.sql
Snowflake
OUT -> Oracle_02.sql
Reviewing the variable size in the columns
Oracle
IN -> Oracle_03.sql
Snowflake
OUT -> Oracle_03.sql
Known Issues
No issues were found.
Related EWIs
SSC-FDM-OR0015: LENGTHB transformed to OCTET_LENGTH.
Last updated