Table
Create Table
Sybase ASE 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 "dbo"."test_table" (
a bigint DEFAULT 1 NOT NULL,
b char ( 12 ) DEFAULT 'abc' NOT NULL,
c decimal ( 12, 2 ) ,
PRIMARY KEY ( a, b ),
UNIQUE ( b,c )
)
Rename Table
Sybase ASE allows to rename an existing table. After
entering the table name, DtSQL can generate and execute the SQL
to rename the table.
Sample : sp_rename 'test_table', 'testtable'
Truncate Table
Sybase ASE 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 : TRUNCATE TABLE "test_table"
Drop Table
Sybase ASE 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 "dbo"."test_table"
|