Previous Page
fetchTableList()

Solar_Sql_Adapter_Pgsql
fetchValue()

Next Page
getCache()

fetchValue()

public mixed fetchValue ( array|string $spec, array $data default array () )

Fetches the very first value (i.e., first column of the first row).

Inherited from Solar_Sql_Adapter.

Parameters

  • (array|string) $spec: An array of component parts for a SELECT, or a literal query string.
  • (array) $data: An associative array of data to bind into the SELECT statement.

Returns

  • (mixed)

Description

Fetches the very first value (i.e., first column of the first row).

When $spec is an array, automatically sets LIMIT 1 OFFSET 0 to limit the results to a single row.