Table
Create Table
SQLite allows to create a new table. After entering
the table name and column information, DtSQL can generate and execute
the SQL to create the table.
- Column Name
- Column Type
- Length/Precesion
- Scale (decimal)
- Default Value
- Nullable
- Primary Key
- Unique
Sample :
CREATE TABLE TEST_TABLE (
a INTEGER DEFAULT 1 NOT NULL,
b char ( 12 ) DEFAULT 'abc' NOT NULL,
c INTEGER,
PRIMARY KEY ( a, b ),
UNIQUE ( b,c )
)
Rename Table
SQLite allows to rename an existing table. After
entering the table name, DtSQL can generate and execute the SQL
to rename the table.
Sample : ALTER TABLE TEST_TABLE RENAME TO TESTTABLE
Truncate Table
SQLite does not allows to truncate an table
and deleting table is used instead. After entering the table name,
DtSQL can delete all data in the table.
Sample : DELETE FROM TEST_TABLE
Drop Table
SQLite allows to drop an existing table. After
entering the table name, DtSQL can generate and execute the SQL
to drop the table.
Sample : DROP TABLE TEST_TABLE
|