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.

UNIQUE constraints now allow NULLs<br />

Changed in: 1.5<br />

DDL statements<br />

Description: In compliance with the SQL-99 standard, NULLs – even multiple – are now allowed in columns<br />

with a UNIQUE constraint. For a full discussion, see CREATE TABLE :: UNIQUE constraints now allow NULLs.<br />

USING INDEX subclause<br />

Available in: DSQL<br />

Added in: 1.5<br />

Description: A USING INDEX subclause can be placed at the end of a primary, unique or foreign key definition.<br />

Its purpose is to<br />

• provide a user-defined name for the automatically created index that enforces the constraint, and<br />

• optionally define the index to be ascending or descending (the default being ascending).<br />

Syntax:<br />

[ADD] [CONSTRAINT constraint-name]<br />

<br />

[USING [ASC[ENDING] | DESC[ENDING]] INDEX index_name]<br />

For a full discussion and examples, see CREATE TABLE :: USING INDEX subclause.<br />

RECREATE TABLE<br />

Available in: DSQL<br />

Added in: 1.0<br />

Description: Creates or recreates a table. If a table with the same name already exists, RECREATE TABLE will<br />

try to drop it (destroying all its data in the process!) and create a new table. RECREATE TABLE will fail if the<br />

existing table is in use.<br />

Syntax: Exactly the same as CREATE TABLE.<br />

CREATE TRIGGER<br />

Available in: DSQL, ESQL<br />

TRIGGER<br />

45

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

Saved successfully!

Ooh no, something went wrong!