Solved

delete a column from table

Posted on 2011-02-22
4
277 Views
Last Modified: 2012-05-11
delete a column from table

column1
table1
0
Comment
Question by:rgb192
  • 3
4 Comments
 
LVL 23

Expert Comment

by:Rajkumar Gs
ID: 34953760
ALTER TABLE table1column1
DROP COLUMN ColumnName
0
 
LVL 23

Expert Comment

by:Rajkumar Gs
ID: 34953761
Oops!
ALTER TABLE table1
DROP COLUMN ColumnName

Open in new window

0
 
LVL 23

Accepted Solution

by:
Rajkumar Gs earned 125 total points
ID: 34953768
For the table name and column name that you mentioned, it would be
ALTER TABLE table1
DROP COLUMN column1

Open in new window

0
 

Author Closing Comment

by:rgb192
ID: 34954256
thanks
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL help 5 56
Truncate vs Delete 63 107
How to simplify my SQL statement? 14 55
View SQL 2005 Job package 16 70
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question