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.

<strong>Firebird</strong> <strong>2.1</strong> <strong>Language</strong> Ref. <strong>Update</strong><br />

FOR SELECT ... INTO ... DO ........................................................................................................ 104<br />

AS CURSOR clause ............................................................................................................. 105<br />

LEAVE ....................................................................................................................................... 106<br />

OPEN cursor ............................................................................................................................... 107<br />

PLAN allowed in trigger code ..................................................................................................... 107<br />

UDFs callable as void functions .................................................................................................. 107<br />

WHERE CURRENT OF valid again for view cursors ...................................................................... 108<br />

9. Context variables ............................................................................................................................ 109<br />

CURRENT_CONNECTION ............................................................................................................. 109<br />

CURRENT_ROLE .......................................................................................................................... 109<br />

CURRENT_TIME .......................................................................................................................... 110<br />

CURRENT_TIMESTAMP ............................................................................................................... 110<br />

CURRENT_TRANSACTION ........................................................................................................... 111<br />

CURRENT_USER .......................................................................................................................... 112<br />

DELETING .................................................................................................................................. 112<br />

GDSCODE .................................................................................................................................... 112<br />

INSERTING ................................................................................................................................ 113<br />

NEW ............................................................................................................................................ 113<br />

'NOW' ........................................................................................................................................ 114<br />

OLD ............................................................................................................................................ 114<br />

ROW_COUNT ................................................................................................................................ 115<br />

SQLCODE .................................................................................................................................... 116<br />

UPDATING .................................................................................................................................. 116<br />

10. Operators and predicates ............................................................................................................... 117<br />

NULL literals allowed as operands ............................................................................................... 117<br />

|| (string concatenator) ................................................................................................................. 117<br />

Text BLOB concatenation .................................................................................................... 117<br />

Result type VARCHAR or BLOB ......................................................................................... 117<br />

Overflow checking ............................................................................................................. 118<br />

ALL ........................................................................................................................................... 118<br />

NULL literals allowed .......................................................................................................... 118<br />

UNION as subselect ............................................................................................................ 118<br />

ANY / SOME .............................................................................................................................. 118<br />

NULL literals allowed .......................................................................................................... 118<br />

UNION as subselect ............................................................................................................ 119<br />

IN .............................................................................................................................................. 119<br />

NULL literals allowed .......................................................................................................... 119<br />

UNION as subselect ............................................................................................................ 119<br />

IS [NOT] DISTINCT FROM .......................................................................................................... 119<br />

NEXT VALUE FOR ..................................................................................................................... 120<br />

SOME ......................................................................................................................................... 120<br />

11. Aggregate functions ...................................................................................................................... 121<br />

LIST() ......................................................................................................................................... 121<br />

MAX() ........................................................................................................................................ 122<br />

MIN() ......................................................................................................................................... 122<br />

12. Internal functions .......................................................................................................................... 123<br />

ABS() ......................................................................................................................................... 123<br />

ACOS() ....................................................................................................................................... 123<br />

ASCII_CHAR() ............................................................................................................................ 124<br />

ASCII_VAL() ............................................................................................................................... 124<br />

ASIN() ........................................................................................................................................ 125<br />

ATAN() ...................................................................................................................................... 125<br />

vii

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

Saved successfully!

Ooh no, something went wrong!