abstract public function DatabaseConnection::queryRange

cis7 database.inc abstract public DatabaseConnection::queryRange($query, $from, $count, array $args = array(), array $options = array())
cle7 database.inc abstract public DatabaseConnection::queryRange($query, $from, $count, array $args = array(), array $options = array())
elmsmedia7 database.inc abstract public DatabaseConnection::queryRange($query, $from, $count, array $args = array(), array $options = array())
icor7 database.inc abstract public DatabaseConnection::queryRange($query, $from, $count, array $args = array(), array $options = array())
meedjum_blog7 database.inc abstract public DatabaseConnection::queryRange($query, $from, $count, array $args = array(), array $options = array())
mooc7 database.inc abstract public DatabaseConnection::queryRange($query, $from, $count, array $args = array(), array $options = array())

Runs a limited-range query on this database object.

Use this as a substitute for ->query() when a subset of the query is to be returned. User-supplied arguments to the query should be passed in as separate parameters so that they can be properly escaped to avoid SQL injection attacks.

Parameters

$query: A string containing an SQL query.

$args: An array of values to substitute into the query at placeholder markers.

$from: The first result row to return.

$count: The maximum number of result rows to return.

$options: An array of options on the query.

Return value

DatabaseStatementInterface A database query result resource, or NULL if the query was not executed correctly.

3 methods override DatabaseConnection::queryRange()
DatabaseConnection_mysql::queryRange in includes/database/mysql/database.inc
Runs a limited-range query on this database object.
DatabaseConnection_pgsql::queryRange in includes/database/pgsql/database.inc
Runs a limited-range query on this database object.
DatabaseConnection_sqlite::queryRange in includes/database/sqlite/database.inc
Runs a limited-range query on this database object.

File

includes/database/database.inc, line 1178
Core systems for the database layer.

Class

DatabaseConnection
Base Database API class.

Code

abstract public function queryRange($query, $from, $count, array $args = array(), array $options = array());