How do I escape a reserved word in Oracle?

后端 未结 5 1207
野的像风
野的像风 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:09

    From a quick search, Oracle appears to use double quotes (", eg "table") and apparently requires the correct case—whereas, for anyone interested, MySQL defaults to using backticks (`) except when set to use double quotes for compatibility.

提交回复
热议问题