Difference between revisions of "ALTER TABLE ... DROP COLUMN"
From SQLZOO
(Created page with "Delete a column from a table <div class='ht'> <div class=params>schema:scott</div> <div> This is in the SQL standard <a href="http://sqlzoo.net/sql92.html#alter_table_statemen...") |
|||
| Line 4: | Line 4: | ||
<div> | <div> | ||
This is in the SQL standard | This is in the SQL standard | ||
| − | + | [http://sqlzoo.net/sql92.html#alter_table_statement ALTER TABLE] | |
</div> | </div> | ||
Revision as of 13:14, 17 July 2012
Delete a column from a table
schema:scott
This is in the SQL standard ALTER TABLE
DROP TABLE a
CREATE TABLE a(x INTEGER, y INTEGER); INSERT INTO a VALUES (1,2);
ALTER TABLE a DROP COLUMN y
ALTER TABLE a DROP y
ALTER TABLE ... DROP COLUMN