21.10.2013 Views

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Syntax:<br />

SINH (number)<br />

Important<br />

Internal functions<br />

If the external function SINH is declared in your database, it will override the internal function. To make the<br />

internal function available, DROP or ALTER the external function (UDF).<br />

Available in: DSQL, PSQL<br />

Added in: <strong>2.1</strong><br />

Description: Returns the square root of the argument.<br />

Result type: DOUBLE PRECISION<br />

Syntax:<br />

SQRT (number)<br />

Important<br />

SQRT()<br />

If the external function SQRT is declared in your database, it will override the internal function. To make the<br />

internal function available, DROP or ALTER the external function (UDF).<br />

Available in: DSQL, PSQL<br />

Added in: 1.0<br />

Changed in: 2.0, <strong>2.1</strong><br />

SUBSTRING()<br />

Description: Returns a string's substring starting at the given position, either to the end of the string or with<br />

a given length.<br />

Result type: VARCHAR(n) or BLOB<br />

Syntax:<br />

SUBSTRING (str FROM startpos [FOR length])<br />

This function returns the substring starting at character position startpos (the first position being 1). Without<br />

the FOR argument, it returns all the remaining characters in the string. With FOR, it returns length characters<br />

or the remainder of the string, whichever is shorter.<br />

159

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!