小编mor*_*oth的帖子

获取json列键为空的记录

我有usersjson列的表details.

我想获取所有用户记录,其中详细信息["email"]为空或电子邮件密钥不存在.

这不起作用:

SELECT users.* FROM users where details->'email' IS NOT NULL;

ERROR: operator does not exist: json -> boolean

postgresql json

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

标签 统计

json ×1

postgresql ×1