Altering and Dropping Tables : Alter Table : Table Index SQL / MySQL


SQL / MySQL » Table Index » Alter Table »

 

Altering and Dropping Tables




Drop table Stock;

CREATE TABLE Stock
(
   ID SMALLINT
);

Describe Stock;

ALTER TABLE Stock
ADD COLUMN Quantity SMALLINT UNSIGNED NOT NULL,
MODIFY ID SMALLINT UNSIGNED NOT NULL,
ADD PRIMARY KEY (ID);

Describe Stock;

ALTER TABLE Stock
DROP COLUMN Quantity,
DROP PRIMARY KEY;

Describe Stock;

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

SQL / MySQL

 Navioo Table Index
» Alter Table