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 />

Modifiers<br />

The time string can be followed by zero or more modifiers that alter the date or alter the interpretation of the date. The<br />

available modifiers are as follows:<br />

NNN days Number of days to add to the time.<br />

NNN hours Number of hours to add to the time.<br />

NNN minutes Number of minutes to add to the time.<br />

NNN.NNNN seconds Number of seconds and milliseconds to add to the time.<br />

NNN months Number of months to add to the time.<br />

NNN years Number of years to add to the time.<br />

start of month Shift time backwards to the start of the month.<br />

start of year Shift time backwards to the start of the year.<br />

start of day Shift time backwards to the start of the day.<br />

weekday N Forwards the time to the specified weekday. (0 = Sunday, 1 =<br />

Monday, and so forth).<br />

localtime Converts the date to local time.<br />

utc Converts the date to Universal Coordinated Time.<br />

Operators<br />

SQL supports a large selection of operators, including common operators that exist in most programming languages,<br />

as well as several operators that are unique to SQL.<br />

Common operators<br />

The following binary operators are allowed in a SQL block and are listed in order from highest to lowest preced<strong>en</strong>ce:<br />

* / %<br />

+ -<br />

> & |<br />

< >= > >=<br />

= == != IN<br />

AND<br />

OR<br />

Supported unary prefix operators are:<br />

! ~ NOT<br />

The COLLATE operator can be thought of as a unary postfix operator. The COLLATE operator has the highest<br />

preced<strong>en</strong>ce. It always binds more tightly than any prefix unary operator or any binary operator.<br />

Note that there are two variations of the equals and not equals operators. Equals can be either = or ==. The not-equals<br />

operator can be either != or .<br />

The || operator is the string concat<strong>en</strong>ation operator—it joins together the two strings of its operands.<br />

The operator % outputs the remainder of its left operand modulo its right operand.<br />

The result of any binary operator is a numeric value, except for the || concat<strong>en</strong>ation operator which gives a string result.<br />

SQL operators<br />

LIKE<br />

The LIKE operator does a pattern matching comparison.<br />

expr ::= (column-name | expr) LIKE pattern<br />

pattern ::= '[ string | % | _ ]'<br />

Last updated 6/6/2012<br />

1111

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

Saved successfully!

Ooh no, something went wrong!