![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
SQL Syntax |
| Statement | Description |
| CREATE TABLE | Defines the structure of a data table, including its indexes. |
| ALTER TABLE | Redefines the structure of a data table, including its indexes. |
| CREATE INDEX | Creates an index on a specific data table. |
| DROP | Deletes a table, index or constraint. |
| Statement | Description |
| SELECT | Retrieves data rows from one or more existing tables. |
| INSERT INTO | Appends new rows to an existing table. |
| UPDATE | Updates rows of an existing table. |
| DELETE | Deletes rows from an existing table |
| UNION | Merges two results tables into a single table |
The most common general data types, together with some specific to Microsoft Access, are listed below:
The following data types are defined by ANSI:
| Data Type | Description | Synonyms |
| CHAR(Length) | String data type where Length=max number of characters | CHARACTER, TEXT |
| BOOLEAN | True or False | LOGICAL |
| DATE | Any valid date | |
| TIME | Any valid time | TIMESTAMP |
| REAL | Singe-precision floating point number | |
| FLOAT | Double-precision floating point number | |
| SMALLINT | Short integer (2 bytes) | |
| INTEGER | Long integer (4 bytes) |
Microsoft Access defines the following additional data types:
| Data Type | Description | Synonyms |
| BYTE | 1 byte of data | |
| COUNTER | An automatically incrementing long integer-compatible data type used primarily as a key | AUTOINCREMENT, AUTONUMBER |
| CURRENCY | Special data type for financial purposes | MONEY |
| LONGTEXT | Textual data which may be over 255 characters in length | NOTE, MEMO |
© 1997 GJC Technical Ltd. Last
updated on 21 June 1997
Please email any comments about this site to webmaster@gjctech.co.uk.