COLLATE

Description

Specifies whether string search or comparison on the column is CASE_SENSITIVE or CASE_INSENSITIVE.

Click here to navigate to the Amazon Redshift docs page for this syntax.

The default collation language is English. If your database uses a different language, please update the 'en-' prefix to match your database's language. For more information, please refer to this link.

Grammar Syntax

COLLATE CASE_SENSITIVE | COLLATE CASE_INSENSITIVE

Sample Source Patterns

RedShift Input Code:

IN -> Redshift_01.sql
CREATE TABLE table1 (
    col1 TEXT COLLATE CASE_SENSITIVE,
    col2 TEXT COLLATE CASE_INSENSITIVE
);

Snowflake Output Code:

OUT -> Redshift_01.sql
CREATE TABLE table1 (
    col1 TEXT COLLATE 'en-cs',
    col2 TEXT COLLATE 'en-ci'
)
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": {  "major": 0,  "minor": 0,  "patch": "0" }, "attributes": {  "component": "redshift",  "convertedOn": "09/17/2024" }}'
;

Known issues

There are no known issues.

Last updated