【发布时间】:2017-03-22 11:02:39
【问题描述】:
我正在使用 PHP 和 Postgre 开发软件。所以,我有插入代码的问题:
function create(){
$query = "INSERT INTO " . $this->table_name . " VALUES (" . $this->pess_nome . ")";
$result = pg_query($this->conn, $query);
if($result){
return true;
}else{
return false;
}
}
错误信息:
警告:pg_query(): Query failed: ERROR: column "test" does not exist LINE 1: INSERT INTO pessoa VALUES (test) ^ in C:\xampp\htdocs\Projeto_GPass\objects\pessoa.php 第 26 行
【问题讨论】:
标签: php postgresql crud