Documentation

getTopSql

string public
\Bitrix\Main\DB\OracleSqlHelper::getTopSql(
 string $sql,
 integer $limit,
 integer $offset
);

This non-static method transforms query according to specified limits ($limit) and offsets ($offset). $limit must be set when $offset is specified.

Parameters

ParameterDescriptionVersion
$sqlQuery text
$limitMaximum number of rows to be returned.
$offsetOffset of the first row to return, starting from 0.

Exceptions

Examples



© «Bitrix24», 2001-2024
Up