![](/img/trans.png)
[英]Can someone help me with this problem with python and google sheets api?
[英]Can someone help explain the syntax behind this query in Google Sheets?
我最近在 Google Sheets 上遇到了這個查詢,我對以下查詢之一有疑問:
=transpose(query(settings!A2:C,"select B, C where A = '" & B4 & "'",0))
有人可以向我解釋這一部分嗎?
= '" & B4 & "'",0)
我正在努力尋找可以幫助解釋 ' 和 " 在 Google 表格查詢中如何工作的文檔。
它正在使用單元格值創建查詢字符串。
假設您在單元格 B4 中有 Simon 這個詞,那么它正在構建
"select B, C where A = '" & B4 & "'"
作為
Select B, C where A = 'Simon'
& 運算符連接(組合)字符串。 這是將單元格 b4 的值添加到您的 where 子句中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.