如何where在函式的子句中使用帶撇號的字串query?
我希望能夠使用包含這樣的撇號的字串過濾我的查詢。
=QUERY(D:E;"select E where D = 'this string's apostrophe breaks my code'";0)

有誰知道如何使它作業?
uj5u.com熱心網友回復:
where這可以通過在您希望在子句中使用的字串周圍放置兩組雙引號來完成。
例如:
=QUERY(D:E;"select E where D = ""this string's apostrophe breaks my code""";0)
uj5u.com熱心網友回復:
用雙引號將條件括起來:
"select E where D = ""this string's apostrophe breaks my code"""
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/496006.html
標籤:谷歌表格
