D7 API documentation
What's New
Modules
Main module in old core
addSecondsToDateTime
castToChar
convertFromDb
convertToDb
forSql
formatDate
getAliasLength
getAscendingOrder
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getDescendingOrder
getFieldByColumnType
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getSubstrFunction
getTopSql
prepareAssignment
prepareInsert
prepareMerge
prepareUpdate
quote
softCastTextToChar
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 $offset
is set.
Parameters
Parameter | Description | Version |
---|---|---|
$sql | Sql text. | |
$limit | Maximum number of strings to be returned. | |
$offset | Offset of the first returned string, starting from 0. |
Exceptions
Examples
© «Bitrix24», 2001-2024
Up