我想知道如何创建Zend / MySQL以检查是否存在BLOB。我使用的代码不起作用。任何建议将不胜感激。
$result = array();
$select = $this->select();
$select->setIntegrityCheck(false);
$select->from($this->_name, '*')
->where(LENGTH($this->_name.'.ad_image') <= 0);
$result = $this->fetchAll($select)->toArray();
答案 0 :(得分:1)
尝试......
$select->from($this->_name, '*')
->where("LENGTH({$this->_name}.ad_image) <= 0");