Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 如何避免条令迁移中的问号?_Postgresql_Jsonb_Doctrine Migrations - Fatal编程技术网

Postgresql 如何避免条令迁移中的问号?

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任何函数替换了问号,我的查询运

我使用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任何
函数替换了问号,我的查询运行良好,但在我的情况下,是否有某种方法可以避开问号

谢谢