13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

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.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

SQL support in local databases<br />

sql-statem<strong>en</strong>t ::= COLLATE collation-name<br />

collation-name ::= BINARY | NOCASE<br />

The default collation type for columns is BINARY. Wh<strong>en</strong> BINARY collation is used with values of the TEXT storage<br />

class, binary collation is performed by comparing the bytes in memory that repres<strong>en</strong>t the value regardless of the text<br />

<strong>en</strong>coding.<br />

The NOCASE collation sequ<strong>en</strong>ce is only applied for values of the TEXT storage class. Wh<strong>en</strong> used, the NOCASE<br />

collation performs a case-ins<strong>en</strong>sitive comparison.<br />

No collation sequ<strong>en</strong>ce is used for storage classes of type NULL, BLOB, INTEGER, or REAL.<br />

To use a collation type other than BINARY with a column, a COLLATE clause must be specified as part of the column<br />

definition in the CREATE TABLE statem<strong>en</strong>t. Wh<strong>en</strong>ever two TEXT values are compared, a collation sequ<strong>en</strong>ce is used<br />

to determine the results of the comparison according to the following rules:<br />

For binary comparison operators, if either operand is a column, th<strong>en</strong> the default collation type of the column<br />

determines the collation sequ<strong>en</strong>ce that is used for the comparison. If both operands are columns, th<strong>en</strong> the collation<br />

type for the left operand determines the collation sequ<strong>en</strong>ce used. If neither operand is a column, th<strong>en</strong> the BINARY<br />

collation sequ<strong>en</strong>ce is used.<br />

The BETWEEN...AND operator is equival<strong>en</strong>t to using two expressions with the >= and = y AND x

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

Saved successfully!

Ooh no, something went wrong!