Previous Page
innerJoin()

Solar_Sql_Select
join()

Next Page
leftJoin()

join()

public Solar_Sql_Select join ( string|object $spec, string $cond, array|string $cols default NULL )

Adds a JOIN table and columns to the query.

Parameters

  • (string|object) $spec: If a Solar_Sql_Model object, the table to join to; if a string, the table name to join to.
  • (string) $cond: Join on this condition.
  • (array|string) $cols: The columns to select from the joined table.

Returns

  • (Solar_Sql_Select)

Description

Adds a JOIN table and columns to the query.