Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/270.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/4/postgresql/10.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
Php 使用codeigniter查询选择属性设置为null的字段_Php_Postgresql_Codeigniter - Fatal编程技术网

Php 使用codeigniter查询选择属性设置为null的字段

Php 使用codeigniter查询选择属性设置为null的字段,php,postgresql,codeigniter,Php,Postgresql,Codeigniter,我试图创建以下语句: $this->db->where('uu.usuario\u grupo\u id为null')您可以按以下方式执行: $this->db->where(array('uu.usuario_grupo_id' => NULL)); 产生 WHERE `usuario_grupo_id` IS NULL 试试这个 $this->db->where('uu.usuario_grupo_id IS NULL', null, false);

我试图创建以下语句:


$this->db->where('uu.usuario\u grupo\u id为null')您可以按以下方式执行:

$this->db->where(array('uu.usuario_grupo_id' => NULL));
产生

WHERE `usuario_grupo_id` IS NULL 
试试这个

$this->db->where('uu.usuario_grupo_id IS NULL', null, false);
有关更多信息,请查看