SQL Query Syntax Error - Spaces in Field Names

前端 未结 5 641
囚心锁ツ
囚心锁ツ 2021-02-08 13:49

The database my application uses has field names containing spaces. I believe this to be the cause of my problem. Here is a typical query:

SELECT * FROM \'OV2          


        
5条回答
  •  青春惊慌失措
    2021-02-08 13:50

    For Microsoft Access, wrap field names that contain spaces with back ticks e.g. SELECT `Eng Units` FROM Table

提交回复
热议问题