Documentation

getSubstrFunction

string public
\Bitrix\Main\DB\MssqlSqlHelper::getSubstrFunction(
 string $str,
 integer $from,
 integer $length = null
);

This non-static method returns SQL function to get part of string.

If length is null or omitted, the substring starting from start until the end of the string will be returned.

Parameters $str and $from parameters are SQL unsafe.

Parameters

ParameterDescriptionVersion
$strDatabase field or expression.
$fromStart position.
$lengthMaximum length.

Examples



© «Bitrix24», 2001-2024
Up