Table
Create Table
JDataStore 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 "DEFAULT_SCHEMA"."TEST_TABLE" (
a bigint DEFAULT 1 NOT NULL,
b char ( 12 ) DEFAULT 'abc' NOT NULL,
c int,
PRIMARY KEY ( a, b ),
UNIQUE ( b,c )
)
Rename Table
JDataStore allows to rename an existing table. After
entering the table name, DtSQL can generate and execute the SQL
to rename the table.
Sample : RENAME TABLE "DEFAULT_SCHEMA"."TEST_TABLE"
TO TESTTABLE
Truncate Table
JDataStore 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 "DEFAULT_SCHEMA"."TEST_TABLE"
Drop Table
JDataStore 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 "DEFAULT_SCHEMA"."TEST_TABLE"
|