Solar_Sql_Select::cols()

public Solar_Sql_Select Solar_Sql_Select::cols ( string|array $cols )

Adds 1 or more columns to the SELECT, without regard to a FROM or JOIN.

Parameters

  • (string|array) $cols: The column(s) to add to the SELECT.

Returns

  • (Solar_Sql_Select)

Description

Adds 1 or more columns to the SELECT, without regard to a FROM or JOIN.

Multiple calls to cols() will append to the list of columns, not overwrite the previous columns.



Local