指定当前操作的数据表
@access public
@param mixed $table 表名
@return $this
164984
public function table($table)
    {
        if (is_string($table)) {
            if (strpos($table, ')')) {
                // 子查询
            } elseif (strpos($table, ',')) {
                $tables = explode(',', $table);
                $table  = [];

                foreach ($tables as $item) {
                    list($item, $alias) = explode(' ', trim($item));
                    if ($alias) {
                        $this->alias([$item => $alias]);
                        $table[$item] = $alias;
                    } else {
                        $table[] = $item;
                    }
                }
            } elseif (strpos($table, ' ')) {
                list($table, $alias) = explode(' ', $table);

                $table = [$table => $alias];
                $this->alias($table);
            }
        } else {
            $tables = $table;
            $table  = [];

            foreach ($tables as $key => $val) {
                if (is_numeric($key)) {
                    $table[] = $val;
                } else {
                    $this->alias([$key => $val]);
                    $table[$key] = $val;
                }
            }
        }
        $this->options['table'] = $table;

        return $this;
    }
385756
public function table($table)
    {
        $this->table = $table;
        $alias = $this->alias ?? $this->table;

        if (!in_array('`' . $table . '`.*', $this->select) && !in_array('`' . $alias . '`.*', $this->select)) {
            $this->select[] = '`' . $table . '`.*';
        }

        return $this;
    }
1243699
public function from($table)
    {
        if ($table instanceof TableIdentifier) {
            $table = $table->getTable(); // Ignore schema because it is not supported by SphinxQL
        }

        $this->table = $table;

        return $this;
    }
567695
public function into($table)
    {
        [$tableAlias, $tableName] = $this->dialect()->parseTable($table);

        unset($tableAlias);

        $this->into = $this->dialect()->quoteTable($tableName);

        return $this;
    }
996321
public function from($table, $columns = null)
    {
        $this->table($table);
        if( !empty($columns) ) {
            $this->columns($columns);
        }
        return $this;
    }
837112
public function PrefixTable($Table) {
      $Prefix = $this->Database->DatabasePrefix;
      
      if ($Prefix != '' && substr($Table, 0, strlen($Prefix)) != $Prefix)
         $Table = $Prefix.$Table;

      return $Table;
   }
1289471
public function delete($table)
    {
        $this->type  = 'DELETE';
        $this->table = $this->quoteName($table);
        $this->fromRaw($this->quoteName($table));
        return $this;
    }
186303
public function setTableName($table)
    {
        // 1. 尝试解析为 [数据库名.表名]
        if(strpos($table, '.') !== false) {
            list($database, $table) = explode('.', $table);
            if ($database)  {
                $this->options['database'] = $database;
                $this->options['real_table_name'] = $table;
            }
        }
        // 2. 尝试分离出命名空间和表名
        else {
            $table = StringHelper::toClassLastName($table, 'model');
        }
        
        $table = StringHelper::toUnderscoreVariable($table);
        if (substr($table, 0, 1) === '#') {
            $this->options['real_table_name'] = $this->options['table_name'] = str_replace('#', '', $table);
        } else {
            $this->options['table_name'] = preg_replace('/^' . static::getTablePrefix() . '/i', '', $table);
        }
        
        return $this;
    }
624166
public function table($table)
    {
        if( $table instanceof Expression ) {
            $this->table = $table;
        } else {
            $this->table = (string) $table;
        }
        return $this;
    }
1330513
public function update(string $table) : QueryBuilder
    {
        $this->_query[] = "UPDATE";
        $this->_query[] = "`". $this->sanitize($table) ."`";

        return $this;
    }
116769
function ___table($tableName) {
        $this->name = $tableName;
        $this->table = $this->prefix.$tableName;
        return $this;
    }
230561
public static function update($table = null)
    {
        $query = new Update();

        if ($table) {
            $query->table($table);
        }

        return $query;
    }
1208937
public function delete($table)
	{
		if (in_array($table, $this->tablesToDelete) === false) {
			$this->tablesToDelete[] = $table;
		}

		return $this;
	}
1170361
public function delete($table = "")
    {
        if (empty($table)) {
            $table = $this->structure->tableName; // @codeCoverageIgnore
        }

        $this->table = $table;
        $this->queryType = self::QUERY_DELETE;

        return $this;
    }
205835
public function update( $table )
    {
        $table = $this->getIdentifier( $table );
        $table = $this->getPrefixedTableNames($table);
        $this->table = $table;
        return $this;
    }
1359960
public function update($table = "")
    {
        if (empty($table)) {
            $table = $this->structure->tableName;
        }

        $this->table = $table;
        $this->queryType = self::QUERY_UPDATE;

        // Determinate the column order
        $this->columnOrder = array();
        foreach ($this->structure->columns as $column) {
            $this->columnOrder[] = $column;
        }

        return $this;
    }
848815
public function delete($table = null)
  {
    $this->type   = 'delete';
    $this->delete = new Element('DELETE', null);

    if ( !empty($table) ){
      $this->from($table);
    }
    
    return $this;
  }