How do I escape a reserved word in Oracle?

后端 未结 5 1265
野的像风
野的像风 2020-11-22 15:49

In TSQL I could use something like Select [table] from tablename to select a column named \"table\".

How do I do this for reserved words in oracle?

5条回答
  •  孤城傲影
    2020-11-22 16:00

    you have to rename the column to an other name because TABLE is reserved by Oracle.

    You can see all reserved words of Oracle in the oracle view V$RESERVED_WORDS.

提交回复
热议问题