コード例 #1
0
ファイル: Mysqli.php プロジェクト: adawongframework/project
 /**
  * 执行一条删除语句
  *+-------------------------
  * @param String $table 表名
  * @param String $where 条件
  * @return Boolean
  */
 public function delete($table, $where = '')
 {
     return $this->query(Ada_Database_Query::deleteString($table, $where));
 }
コード例 #2
0
ファイル: Pdo.php プロジェクト: adawongframework/project
 /**
  * 执行一条删除语句
  *+-------------------------
  * @param String $table 表名
  * @param String $where 条件
  * @return Boolean
  */
 public function delete($table, $where = NULL)
 {
     $this->dblink();
     if (($this->affect = $this->identity->exec(Ada_Database_Query::deleteString($table, $where))) === FALSE) {
         $this->debug();
         return FALSE;
     }
     return TRUE;
 }
コード例 #3
0
 /**
  * 执行一个删除语句
  * @param String $table 数据库表名
  * @param String $where 删除条件
  * @return Bool
  */
 public function delete($table, $where = NULL)
 {
     $this->dblink();
     return $this->query(Ada_Database_Query::deleteString($table, $params, $where));
 }