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.

Example:<br />

DML statements<br />

plan (MyTable order ix_myfield index (ix_this, ix_that))<br />

PLAN must include all tables<br />

Changed in: 2.0<br />

Description: In <strong>Firebird</strong> 2 and up, a PLAN clause must handle all the tables in the query. Previous versions<br />

sometimes accepted incomplete plans, but this is no longer the case.<br />

Relation alias makes real name unavailable<br />

Changed in: 2.0<br />

Description: If you give a table or view an alias in a <strong>Firebird</strong> 2.0 or above statement, you must use the alias, not<br />

the table name, if you want to qualify fields from that relation.<br />

Examples:<br />

ROWS<br />

Correct usage:<br />

select pears from Fruit<br />

select Fruit.pears from Fruit<br />

select pears from Fruit F<br />

select F.pears from Fruit F<br />

No longer possible:<br />

select Fruit.pears from Fruit F<br />

Available in: DSQL, PSQL<br />

Added in: 2.0<br />

Description: Limits the amount of rows returned by the SELECT statement to a specified number or range.<br />

Syntax:<br />

With a single SELECT:<br />

SELECT FROM ...<br />

[WHERE ...]<br />

[ORDER BY ...]<br />

81

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

Saved successfully!

Ooh no, something went wrong!