0

我尝试以下代码:

$data = $this->_db->select()->from(´IncidentInformation´,array(´IncidentID´,´ContactName´))->where("ContactName=?",$numAlert);
$result = $this->_db->fetchAll($data);
return $result;

但我收到以下错误:

SQLSTATE [HY000]:一般错误:904 OCIStmtExecute:ORA-00904:“CONTACTPHONE”:无效标识符(ext\pdo_oci\oci_statement.c:146)

4

1 回答 1

1

尝试:

$data = $this->_db->select()->from('IncidentInformation',array('IncidentID','ContactName'))->where("ContactName=?",$numAlert);
$result = $this->_db->fetchAll($data);
return $result;
于 2013-04-02T03:37:01.227 回答