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.

Examples:<br />

DDL statements<br />

| COLUMN relationname.fieldname<br />

| PARAMETER procname.paramname<br />

::= CHARACTER SET | COLLATION | DOMAIN | EXCEPTION<br />

| EXTERNAL FUNCTION | FILTER | GENERATOR | INDEX<br />

| PROCEDURE | ROLE | SEQUENCE | TABLE | TRIGGER | VIEW<br />

Note<br />

If you enter an empty comment (''), it will end up as NULL in the database.<br />

comment on database is 'Here''s where we keep all our customer records.'<br />

comment on table Metals is 'Also for alloys'<br />

comment on column Metals.IsAlloy is '0 = pure metal, 1 = alloy'<br />

comment on index ix_sales is 'Set inactive during bulk inserts!'<br />

CREATE DATABASE<br />

Available in: DSQL, ESQL<br />

Syntax (partial):<br />

CREATE {DATABASE | SCHEMA}<br />

...<br />

[PAGE_SIZE [=] size]<br />

...<br />

[DIFFERENCE FILE 'filepath']<br />

size ::= 4096 | 8192 | 16384<br />

DATABASE<br />

• If the user supplies a size smaller than 4096, it will be silently converted to 4096. Other numbers<br />

not equal to any of the supported sizes will be silently converted to the next lower supported size.<br />

16 Kb page size supported, 1 and 2 Kb deprecated<br />

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

Description: <strong>Firebird</strong> 1.0 has raised the maximum database page size from 8192 to 16384 bytes. In <strong>Firebird</strong> <strong>2.1</strong><br />

and up, page sizes 1024 and 2048 are deprecated as inefficient. <strong>Firebird</strong> will no longer create databases with<br />

these page sizes, but it will connect to existing small-page databases without any problem.<br />

18

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

Saved successfully!

Ooh no, something went wrong!