>
Part | Description |
table | The name of the table to be created. |
field1, field2 | The name of field or fields to be created in the new table. You must create at least one field. |
type | The data type of field in the new table. |
size | The field size in characters (Text and Binary fields only). |
index1, index2 | A CONSTRAINT clause defining a single-field index. See the CONSTRAINT clause topic for more information on how to create this index. |
multifieldindex | A CONSTRAINT clause defining a multiple-field index. See the CONSTRAINT clause topic for more information on how to create this index. |
CREATE TABLE ThisTable (FirstName TEXT, LastName TEXT);This example creates a new table called MyTable with two Text fields, a Date/Time field, and a unique index made up of all three fields.
CREATE TABLE MyTable (FirstName TEXT, LastName TEXT, DateOfBirth DATETIME,This example creates a new table with two Text fields and an Integer field. The SSN field is the primary key.
CONSTRAINT MyTableConstraint UNIQUE (FirstName, LastName, DateOfBirth));
CREATE TABLE NewTable (FirstName TEXT, LastName TEXT, SSN INTEGER CONSTRAINT MyFieldConstraint PRIMARY KEY);