Solar_Sql_Adapter_Pgsql::fetchAssoc()

public array Solar_Sql_Adapter_Pgsql::fetchAssoc ( array|string $spec , array $data = array () )

Fetches all rows from the database using associative keys (defined by the first column).

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

  • (array)

Description

Fetches all rows from the database using associative keys (defined by the first column).

N.b.: if multiple rows have the same first column value, the last row with that value will override earlier rows.



Local