相关疑难解决方法(0)

如何使用数组中的select包含psql中的value子句

我有arr 类型的列array.

我需要获取行,其中arr列包含值s

这个查询:

SELECT * FROM table WHERE arr @> ARRAY['s']
Run Code Online (Sandbox Code Playgroud)

给出错误:

错误:运算符不存在:字符变化[] @> text []

为什么不起作用?

ps我知道any()运算符,但为什么不@>工作?

postgresql postgresql-9.2

75
推荐指数
3
解决办法
7万
查看次数

标签 统计

postgresql ×1

postgresql-9.2 ×1