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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

)<br />

DDL statements<br />

lastname varchar(24) not null,<br />

fullname varchar(74) generated always as<br />

(firstname || coalesce(' ' || middlename, '') || ' ' || lastname),<br />

street varchar(32),<br />

...<br />

...<br />

Note: GENERATED ALWAYS AS is not currently supported in index definitions.<br />

CHECK accepts NULL outcome<br />

Changed in: 2.0<br />

Description: If a CHECK constraint resolves to NULL, <strong>Firebird</strong> versions before 2.0 reject the input. Following<br />

the SQL standard to the letter, <strong>Firebird</strong> 2.0 and above let NULLs pass and only consider the check failed if the<br />

outcome is false.<br />

Example:<br />

Checks like these:<br />

check (value > 10000)<br />

check (Town like 'Amst%')<br />

check (upper(value) in ( 'A', 'B', 'X' ))<br />

check (Minimum

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

Saved successfully!

Ooh no, something went wrong!