ALTER TABLE ... DROP COLUMN

From SQLZOO
Revision as of 14:03, 17 July 2012 by Marek (Talk | contribs)

Jump to: navigation, search

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
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense