How to delete an attribute from the emp table

Answer Posted / sonia

Using the DROP COMMAND-
See the eg below--

create table stup(roll int,name varchar,marks int)
insert into stup values(1,'A',10)
insert into stup values(2,'B',20)
select * from stup
Alter table stup drop column marks
select * from stup

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How much does sql server 2016 cost?

524


What is the difference between implicit and explicit transaction?

552


What is SQL Azure Fabric?

92


How do I change my passwords (database, LDAP, and so on) without causing an outage?

590


Do you know what are the ways available in sql server to execute sql statements?

536






Where are full-text indexes stored?

560


tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

561


Explain hostprotectionattribute in sql server 2005?

590


What is a fan-out query in SQL Azure?

99


What do you mean by SQL injection attack?

607


What are the different types of sql server replication? : sql server replication

616


Do you know what is a linked server in sql server?

541


What is a primary key?

534


Tell me what is de-normalization and what are some of the examples of it?

559


How to convert numeric values to integers in ms sql server?

524