我有arr 类型的列array.
arr
array
我需要获取行,其中arr列包含值s
s
这个查询:
SELECT * FROM table WHERE arr @> ARRAY['s']
给出错误:
错误:运算符不存在:字符变化[] @> text []
为什么不起作用?
ps我知道any()运算符,但为什么不@>工作?
any()
@>
postgresql postgresql-9.2
postgresql ×1
postgresql-9.2 ×1