【发布时间】:2020-06-26 19:30:50
【问题描述】:
尝试运行此查询:
=query(IMPORTRANGE("XXXXXXX","'XX'!A:H"), "where Col3 = '666' and select Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8 and order by Col5 desc",1)
并且不断出现类似这样的奇怪错误
无法解析函数 QUERY 参数 2 的查询字符串:PARSE_ERROR:在第 1 行第 24 列遇到“选择”“选择”。期待以下之一:“真”...“假”...“不”...“日期”...“timeofday”...“datetime”...“timestamp”...“min”...“max”...“avg”...“count” ...“总和”...“no_values”...“no_format”...“is”...“null”...“year”...“month”...“day”... . “小时” ... “分钟” ... “秒” ... “毫秒” ... “with” ... “包含” ... “开始” ... “结束” ... “匹配”...“喜欢”...“现在”...“dateDiff”...“季度”...“下”...“上”...“dayOfWeek”...“toDate” ... ...
... ... ... ... "(" ... "-" ...
不知道为什么错误是指我显然没有要求的第 24 列 :)
有什么想法吗?
【问题讨论】:
-
Column24= 字符 24。第一个字符是
w来自where。选择不能在 where 之后。
标签: google-sheets google-sheets-formula google-query-language importrange