【发布时间】:2014-07-17 16:24:42
【问题描述】:
我有表 users 和 json 列 details。
我想获取 details["email"] 为 null 或电子邮件密钥不存在的所有用户记录。
这不起作用:
SELECT users.* FROM users where details->'email' IS NOT NULL;
ERROR: operator does not exist: json -> boolean
【问题讨论】:
标签: json postgresql