Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets 有人能解释一下谷歌表单中这个查询背后的语法吗?_Google Sheets_Google Query Language - Fatal编程技术网

Google sheets 有人能解释一下谷歌表单中这个查询背后的语法吗?

Google sheets 有人能解释一下谷歌表单中这个查询背后的语法吗?,google-sheets,google-query-language,Google Sheets,Google Query Language,我最近在Google Sheets上遇到了这个查询,我对其中一个查询有疑问: =transpose(query(settings!A2:C,"select B, C where A = '" & B4 & "'",0)) 能给我解释一下这个部分吗 = '" & B4 & "'",0) 我正在努力寻找有助于解释“和”如何在Google Sheets查询中工作的文档。它正在使用单元格值创建查询字符串 假设你在B4单元有Simon这个词,那么它正在构建 "selec

我最近在Google Sheets上遇到了这个查询,我对其中一个查询有疑问:

=transpose(query(settings!A2:C,"select B, C where A = '" & B4 & "'",0))
能给我解释一下这个部分吗

= '" & B4 & "'",0)

我正在努力寻找有助于解释“和”如何在Google Sheets查询中工作的文档。

它正在使用单元格值创建查询字符串

假设你在B4单元有Simon这个词,那么它正在构建

"select B, C where A = '" & B4 & "'"
作为

&运算符连接(组合)字符串。下面是将单元格b4的值添加到where子句中

Select B, C where A = 'Simon'