How to deal with SQL column names that look like SQL keywords?

后端 未结 14 1219
温柔的废话
温柔的废话 2020-11-22 13:24

One of my columns is called from. I can\'t change the name because I didn\'t make it. Am I allowed to do something like SELECT from FROM TableName

14条回答
  •  自闭症患者
    2020-11-22 13:47

    Judging from the answers here and my own experience. The only acceptable answer, if you're planning on being portable is don't use SQL keywords for table, column, or other names.

    All these answers work in the various databases but apparently a lot don't support the ANSI solution.

提交回复
热议问题