Difference between revisions of "ALTER TABLE ... DROP COLUMN"

From SQLZOO
Jump to: navigation, search
(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
<a href="http://sqlzoo.net/sql92.html#alter_table_statement">ALTER TABLE</a>
+
[http://sqlzoo.net/sql92.html#alter_table_statement ALTER TABLE]
 
</div>
 
</div>
  

Revision as of 14: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
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense