LEFT()
<< IIF() | FB 2.5 Language Reference | LN() >>
<< IIF() | FB 2.1 Language Reference | LN() >>
LEFT()
Added in: 2.1
Description
Returns the leftmost part of the argument string. The number of characters is given in the second argument.
Syntax
LEFT (string, length)
- This function fully supports text BLOBs of any length, including those with a multi-byte character set.
- If
stringis a BLOB, the result is a BLOB. Otherwise, the result is aVARCHAR(n) withnthe length of the input string. - If the
lengthargument exceeds the string length, the input string is returned unchanged. - If the
lengthargument is not a whole number, bankers' rounding (round-to-even) is applied, i.e.0.5becomes0,1.5becomes2,2.5becomes2,3.5becomes4, etc.
See also:
RIGHT()
back to top of page
<< IIF() | FB 2.5 Language Reference | LN() >>
<< IIF() | FB 2.1 Language Reference | LN() >>







