/** * 执行一条插入语句 *+------------------------------------------------- * @param String $table 表名 * @param Aarry $params 插入数据,数组key作为表字段名 * @return Boolean */ public function insert($table, $params) { $this->dblink(); if (($this->affect = $this->identity->exec(Ada_Database_Query::insertString($table, $params))) === FALSE) { $this->debug(); return FALSE; } return TRUE; }
/** * 执行一条插入语句 *+------------------------------------------------- * @param String $table 表名 * @param Aarry $params 插入数据,数组key作为表字段名 * @return Boolean */ public function insert($table, $params) { return $this->query(Ada_Database_Query::insertString($table, $params)); }