Firebird 2.1 Language Reference Update
Firebird 2.1 Language Reference Update
Firebird 2.1 Language Reference Update
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Examples:<br />
Internal functions<br />
lpad ('Hello', 12) -- returns ' Hello'<br />
lpad ('Hello', 12, '-') -- returns '-------Hello'<br />
lpad ('Hello', 12, '') -- returns 'Hello'<br />
lpad ('Hello', 12, 'abc') -- returns 'abcabcaHello'<br />
lpad ('Hello', 12, 'abcdefghij') -- returns 'abcdefgHello'<br />
lpad ('Hello', 2) -- returns 'He'<br />
lpad ('Hello', 2, '-') -- returns 'He'<br />
lpad ('Hello', 2, '') -- returns 'He'<br />
Warning<br />
See also: RPAD()<br />
When used on a BLOB, this function may need to load the entire object into memory. Although it does try to<br />
limit memory consumption, this may affect performance if huge BLOBs are involved.<br />
Available in: DSQL, PSQL<br />
Added in: <strong>2.1</strong><br />
MAXVALUE()<br />
Description: Returns the maximum value from a list of numerical, string, or date/time expressions. This function<br />
fully supports text BLOBs of any length and character set.<br />
Result type: Varies<br />
Syntax:<br />
MAXVALUE (expr [, expr ...])<br />
• If one or more expressions resolve to NULL, MAXVALUE returns NULL. This behaviour differs<br />
from the aggregate function MAX.<br />
See also: MINVALUE()<br />
Available in: DSQL, PSQL<br />
Added in: <strong>2.1</strong><br />
MINVALUE()<br />
Description: Returns the minimum value from a list of numerical, string, or date/time expressions. This function<br />
fully supports text BLOBs of any length and character set.<br />
Result type: Varies<br />
145