Postgresql 如何避免条令迁移中的问号?
我使用PostgreSql上的条令迁移,我有以下查询,即使用Jsonb语法访问数据:Postgresql 如何避免条令迁移中的问号?,postgresql,jsonb,doctrine-migrations,Postgresql,Jsonb,Doctrine Migrations,我使用PostgreSql上的条令迁移,我有以下查询,即使用Jsonb语法访问数据: select case when (json_field ? 'in_json_field_name') then 'exists' else 'not exists' end as 'in_json_field' from table bar 移民寻找什么?并尝试用一些参数替换它,但在本例中,问号不是占位符,而是查询语法的一部分 我用jsonb\u exists\u任何函数替换了问号,我的查询运
select case
when (json_field ? 'in_json_field_name') then 'exists'
else 'not exists' end as 'in_json_field'
from table bar
移民寻找什么?并尝试用一些参数替换它,但在本例中,问号不是占位符,而是查询语法的一部分
我用jsonb\u exists\u任何
函数替换了问号,我的查询运行良好,但在我的情况下,是否有某种方法可以避开问号
谢谢