Documentation

getTopSql

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

This non-static method transforms SQL query according to $limit and $offset values.

You must specify $limit parameter when $offsetis set.

Parameters

ParameterDescriptionVersion
$sqlSql text.
$limitMaximum number of strings to be returned.
$offsetOffset of the first returned string, starting from 0.

Exceptions

Examples



© «Bitrix24», 2001-2024