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

Create successful ePaper yourself

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

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

SQL support in local databases<br />

Supported SQL syntax<br />

The following SQL syntax listings are supported by the Adobe AIR SQL database <strong>en</strong>gine. The listings are divided into<br />

explanations of differ<strong>en</strong>t statem<strong>en</strong>t and clause types, expressions, built-in functions, and operators. The following<br />

topics are covered:<br />

G<strong>en</strong>eral SQL syntax<br />

Data manipulation statem<strong>en</strong>ts (SELECT, INSERT, UPDATE, and DELETE)<br />

Data definition statem<strong>en</strong>ts (CREATE, ALTER, and DROP statem<strong>en</strong>ts for tables, indices, views, and triggers)<br />

Special statem<strong>en</strong>ts and clauses<br />

Built-in functions (Aggregate, scalar, and date/time formatting functions)<br />

Operators<br />

Parameters<br />

Unsupported SQL features<br />

Additional SQL features<br />

G<strong>en</strong>eral SQL syntax<br />

In addition to the specific syntax for various statem<strong>en</strong>ts and expressions, the following are g<strong>en</strong>eral rules of SQL syntax:<br />

Case s<strong>en</strong>sitivity SQL statem<strong>en</strong>ts, including object names, are not case s<strong>en</strong>sitive. Nevertheless, SQL statem<strong>en</strong>ts are<br />

frequ<strong>en</strong>tly writt<strong>en</strong> with SQL keywords writt<strong>en</strong> in uppercase, and this docum<strong>en</strong>t uses that conv<strong>en</strong>tion. While SQL<br />

syntax is not case s<strong>en</strong>sitive, literal text values in SQL are case s<strong>en</strong>sitive, and comparison and sorting operations can be<br />

case s<strong>en</strong>sitive, as specified by the collation sequ<strong>en</strong>ce defined for a column or operation. For more information see<br />

COLLATE.<br />

White space A white-space character (such as space, tab, new line, and so forth) must be used to separate individual<br />

words in an SQL statem<strong>en</strong>t. However, white space is optional betwe<strong>en</strong> words and symbols. The type and quantity of<br />

white-space characters in a SQL statem<strong>en</strong>t is not significant. You can use white space, such as ind<strong>en</strong>ting and line<br />

breaks, to format your SQL statem<strong>en</strong>ts for easy readability, without affecting the meaning of the statem<strong>en</strong>t.<br />

Data manipulation statem<strong>en</strong>ts<br />

Data manipulation statem<strong>en</strong>ts are the most commonly used SQL statem<strong>en</strong>ts. These statem<strong>en</strong>ts are used to retrieve,<br />

add, modify, and remove data from database tables. The following data manipulation statem<strong>en</strong>ts are supported:<br />

SELECT, INSERT, UPDATE, and DELETE.<br />

SELECT<br />

The SELECT statem<strong>en</strong>t is used to query the database. The result of a SELECT is zero or more rows of data where each<br />

row has a fixed number of columns. The number of columns in the result is specified by the result column name or<br />

expression list betwe<strong>en</strong> the SELECT and optional FROM keywords.<br />

Last updated 6/6/2012<br />

1094

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

Saved successfully!

Ooh no, something went wrong!