Adds addition tables to "JOIN ...".
Database Module_Database_QueryBuilder::join( mixed $table [, string $type = null ] )
参数列表
参数 类型 描述 默认值 $table
mixed
Column name or array($column, $alias) or object $type
string
Join type (LEFT, RIGHT, INNER, etc) null
Database
public function join($table, $type = null)
{
$this->_builder['join'][] = array('table' => $table, 'type' => $type, 'on' => array());
end($this->_builder['join']);
$k = key($this->_builder['join']);
unset($this->_last_join);
$this->_last_join = & $this->_builder['join'][$k];
return $this;
}