Solar_Sql_Adapter::fetchOne()
public
array
Solar_Sql_Adapter::fetchOne
( array|string $spec
, array $data = array ()
)
Fetches one row from the database.
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 one row from the database.
When $spec is an array, automatically sets LIMIT 1 OFFSET 0 to limit the results to a single row.