Escape column name in query (to avoid conflict with reserved words)

后端 未结 2 458
轻奢々
轻奢々 2020-12-12 06:32

I have a Google Sheets and want to query in a column called BY. This is failing:

=query(Data!A:GC, \"select BY where BG = \'completed\'\")
         


        
2条回答
  •  一个人的身影
    2020-12-12 06:37

    so to use the column BY as an identifier you must use backquotes around it...

    `BY`
    

    CREDIT: JAMES @ https://productforums.google.com/forum/#!msg/docs/tFB_02gNceQ/-2IUvmnQBgAJ

提交回复
热议问题