QUOTE_IDENT

String function

Description

The QUOTE_IDENT function returns the specified string as a string with a leading double quotation mark and a trailing double quotation mark. (RedShift SQL Language References QUOTE_IDENT function).

To replicated the functionality of this function, it is converted to a CONCAT function.

Grammar Syntax

QUOTE_IDENT(string)

This function is fully supported by Snowflake.

Sample Source Patterns

Input Code:

IN -> Redshift_01.sql
SELECT 
    QUOTE_IDENT('"CAT"'),
    "QUOTE_IDENT"('Foo bar') ;

Output Code:

OUT -> Redshift_01.sql
SELECT
    CONCAT('"', REPLACE('"CAT"', '"', '""'), '"'),
    CONCAT('"', REPLACE('Foo bar', '"', '""'), '"');

Known Issues

No issues were found.

There are no known issues.

Last updated