25.10.2013 Views

New SQL Features in Firebird

New SQL Features in Firebird

New SQL Features in Firebird

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

8<br />

Common <strong>SQL</strong> : UUID CHAR<br />

CHAR_TO_UUID<br />

UUID b<strong>in</strong>ary to\from CHAR conversion<br />

Converts the CHAR(32) ASCII representation of an UUID<br />

(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)<br />

to the b<strong>in</strong>ary (CHAR(16) OCTETS) representation (optimized for storage)<br />

<strong>SQL</strong>> SELECT CHAR_TO_UUID('A96B285B-4629-45A1-9A86-A8ECCF6561F4')<br />

FROM RDB$DATABASE;<br />

CHAR_TO_UUID<br />

================================<br />

A96B285B462945A19A86A8ECCF6561F4<br />

Luxembourg 2011 Whats new <strong>in</strong> <strong>Firebird</strong> <strong>SQL</strong>

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

Saved successfully!

Ooh no, something went wrong!