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.

Restrictions<br />

DML statements<br />

• The TRANSACTION directive is only available in ESQL.<br />

• In a pure DSQL session, WHERE CURRENT OF isn't of much use, since there exists no DSQL<br />

statement to create a cursor.<br />

• The PLAN, ORDER BY and ROWS clauses are not available in ESQL.<br />

• Since v. 2.0, no column may be SET more than once in the same UPDATE statement.<br />

• The RETURNING clause is not available in ESQL.<br />

• The “INTO ” subclause is only available in PSQL.<br />

• When returning values into the context variable NEW, this name must not be preceded by a<br />

colon (“:”).<br />

COLLATE subclause for text BLOB columns<br />

Added in: 2.0<br />

Description: COLLATE subclauses are now also supported for text BLOBs.<br />

Example:<br />

update MyTable<br />

set NameBlobSp = 'Juan'<br />

where NameBlobBr collate pt_br = 'João'<br />

ORDER BY<br />

Available in: DSQL, PSQL<br />

Added in: 2.0<br />

Description: UPDATE now allows an ORDER BY clause. This only makes sense in combination with ROWS,<br />

but is also valid without it.<br />

PLAN<br />

Available in: DSQL, PSQL<br />

Added in: 2.0<br />

Description: UPDATE now allows a PLAN clause, so users can optimize the operation manually.<br />

Relation alias makes real name unavailable<br />

Changed in: 2.0<br />

85

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

Saved successfully!

Ooh no, something went wrong!