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.

DML statements<br />

Stricter ordering rules with aggregate statements<br />

Changed in: 1.5<br />

Description: See Aggregate statements: Stricter HAVING and ORDER BY.<br />

PLAN<br />

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

Description: Specifies a user plan for the data retrieval, overriding the plan that the optimizer would have generated<br />

automatically.<br />

Syntax:<br />

PLAN <br />

::= [JOIN | [SORT] [MERGE]] ( [, ...])<br />

::= | <br />

::= {table | alias}<br />

{NATURAL<br />

| INDEX ())<br />

| ORDER index [INDEX ()]}<br />

::= index [, index ...]<br />

Handling of user PLANs improved<br />

Changed in: 2.0<br />

Description: Firbird 2 has implemented the following improvements in the handling of user-specified PLANs:<br />

• Plan fragments are propagated to nested levels of joins, enabling manual optimization of complex outer joins.<br />

• User-supplied plans will be checked for correctness in outer joins.<br />

• Short-circuit optimization for user-supplied plans has been added.<br />

• A user-specified access path can be supplied for any SELECT-based statement or clause.<br />

ORDER with INDEX<br />

Changed in: 2.0<br />

Description: A single plan item can now contain both an ORDER and an INDEX directive (in that order).<br />

80

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

Saved successfully!

Ooh no, something went wrong!