简体   繁体   中英

How to SELECT COL_“NAME” in Snowflake ? (COLUMN name containing double quote)

I know this is very bad naming practice, but I am not the owner of the table...

I need to run :

SELECT COL_"NAME"
FROM TABLE

where COL_"NAME" is the name of the column, containing double quotes.

I tried :

SELECT COL_""NAME""
FROM TABLE

SELECT COL_\"NAME\"
FROM TABLE

But nothing works

Identifier Requirements :

To use the double quote character inside a quoted identifier, use two quotes.

To access column: COL_"NAME"

SELECT "COL_""NAME"""
FROM TABLE;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM