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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example:<br />

The equivalent CASE construct:<br />

CASE <br />

WHEN THEN result<br />

[WHEN THEN result ...]<br />

[ELSE defaultresult]<br />

END<br />

Caution<br />

Internal functions<br />

Matching is done with the “=” operator, so if is NULL, it won't match any of the<br />

s, not even those that are NULL.<br />

select name,<br />

age,<br />

decode( upper(sex),<br />

'M', 'Male',<br />

'F', 'Female',<br />

'Unknown' ),<br />

religion<br />

from people<br />

See also: CASE, Simple CASE<br />

Available in: DSQL, PSQL<br />

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

Description: Returns the natural exponential, e number<br />

Result type: DOUBLE PRECISION<br />

Syntax:<br />

EXP (number)<br />

See also: LN()<br />

Available in: DSQL, ESQL, PSQL<br />

Added in: IB 6<br />

EXP()<br />

EXTRACT()<br />

137

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

Saved successfully!

Ooh no, something went wrong!