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.

DDL statements<br />

Restriction on recreating used triggers<br />

Changed in: 2.0, 2.0.1<br />

Description: In <strong>Firebird</strong> 2.0 only, a restriction is in place which prevents anyone from dropping, altering or<br />

recreating a trigger or stored procedure if it has been used since the database was opened. This restriction has<br />

been removed again in version 2.0.1. Still, performing these operations on a live database is potentially risky<br />

and should only be done with the utmost care.<br />

CREATE VIEW<br />

Available in: DSQL, ESQL<br />

VIEW<br />

Per-column aliases supported in view definition<br />

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

Description: <strong>Firebird</strong> <strong>2.1</strong> and up allow the use of column aliases in the SELECT statement. You can alias none,<br />

some or all of the columns; each alias used becomes the name of the corresponding view column.<br />

Syntax (partial):<br />

Notes:<br />

CREATE VIEW viewname []<br />

AS<br />

SELECT [, ...]<br />

FROM ...<br />

[WITH CHECK OPTION]<br />

::= (colname [, colname ...])<br />

::= {source_col | expr} [[AS] colalias]<br />

• If the full column list is also present, specifying column aliases is futile as they will be overridden by the<br />

names in the column list.<br />

• The full column list used to be mandatory for views whose SELECT statement contains expression-based<br />

columns or identical column names. Now you can omit the full column list, provided that you alias such<br />

columns in the SELECT clause.<br />

Full SELECT syntax supported<br />

Changed in: 2.0<br />

53

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

Saved successfully!

Ooh no, something went wrong!