Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL Server
Expertise: Beginner
Apr 24, 2000

Table Columns

Question:
How do I drop a table column?

Answer:
To drop a column, use this syntax:

ALTER TABLE Employees DROP COLUMN HomePhone
Just remember that you can't drop a column that's part of an index, a replicated column, a column used in a primary or foreign key, a column with a default or a column bound to a rule.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date