相关疑难解决方法(0)

运算符不存在:json = json

当我尝试从表中选择一些记录时

    SELECT * FROM movie_test WHERE tags = ('["dramatic","women", "political"]'::json)
Run Code Online (Sandbox Code Playgroud)

sql代码抛出错误

LINE 1: SELECT * FROM movie_test WHERE tags = ('["dramatic","women",...
                                        ^
HINT:  No operator matches the given name and argument type(s). You might      need to add explicit type casts.

********** ?? **********

ERROR: operator does not exist: json = json
SQL ??: 42883
????:No operator matches the given name and argument type(s). You might need to add explicit type casts.
??:37
Run Code Online (Sandbox Code Playgroud)

我错过了什么或者我可以在哪里了解这个错误.

sql postgresql json jsonb postgresql-9.4

20
推荐指数
1
解决办法
2万
查看次数

标签 统计

json ×1

jsonb ×1

postgresql ×1

postgresql-9.4 ×1

sql ×1