core/Mysql.php
public function delete(string $tbname, $where = null, $args = null)
    {
        $where = trim($where);
        if (is_int($where) || is_numeric($where)) {
            $args = [intval($where)];
            $where = 'id=?';
        }
        $sql = 'DELETE FROM ' . $tbname;
        if (!empty($where)) {
            $sql .= ' where ' . $where;
        }
        $Stm = $this->execute($sql, $args);
        $Stm->closeCursor();
    }
public function delete(string $tbname, $where = null, $args = null)
    {
        $where = trim($where);
        if (is_int($where) || is_numeric($where)) {
            $args = [intval($where)];
            $where = 'id=?';
        }
        $sql = 'DELETE FROM ' . $tbname;
        if (!empty($where)) {
            $sql .= ' where ' . $where;
        }
        $Stm = $this->execute($sql, $args);
        $Stm->closeCursor();
    }
删除记录集
@param string $tbname
@param null $where
@param null $args
@throws MysqlException