如何使用upper()
inwhere
子句。下面的查询给出了错误:
http://kdbserver:5001/?select from table where upper(cola) = `ABC
请建议如何查询
注意:可乐是专栏
http://kdbserver:5001/?select upper(cola) from table <-- is working fine.
尝试upper[cola]='ABC'
。
圆括号不用于函数自变量,而用于优先级等。方括号用于函数自变量。
之所以在第二种情况下使用圆括号,是因为解析器只是忽略了它们。将与select upper cola from table
在第一种情况下,您实际上是有效的,select from table where upper (cola='ABC')
而不是select from table where (upper cola)='ABC'
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句