SimpleJdbcCall:没有函数存在错误

时间:2018-01-12 11:59:30

标签: spring

我在执行存储过程时遇到异常。例外情况如下

max()

不存在提示:没有函数匹配给定的名称和参数类型。您可能需要添加显式类型casts.Position:15 它的说法函数 find_spot()不存在,但我在数据库中检查了这个程序。我正在使用 Postgresql [DBeaver] 任何人都可以帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

您应该转换json进行搜索或使用json访问查询,请参见示例:

select * from table where cast(field_json as varchar(500)) !~ 'reg_ex' and id = 11

select field_json->>'key' from table where field_json->>'key' ilike 'value'