选择语言 :

 Module_Database_QueryBuilder::from

from(tableA,tableB,...)

Database Module_Database_QueryBuilder::from( mixed $tables )

参数列表

参数 类型 描述 默认值
$tables mixed Table name or array($table, $alias) or object
返回值
  • Database
File: ./modules/database/querybuilder.class.php
public function from($tables)
{
    if (func_num_args() > 1)
    {
        $tables = func_get_args();
    }
    elseif (is_string($tables))
    {
        $tables = explode(',', $tables);
    }
    elseif (!is_array($tables))
    {
        $tables = array($tables);
    }

    $this->_builder['from'] = array_merge($this->_builder['from'], $tables);

    return $this;
}