Delete a column from a table
I have small query please give me solution for this.
my query is i want to delete a column from a table .
my query is i want to delete a column from a table .
Replies
-
Kaustubh Katdare
Right click on the column and select 'Delete'. It's very easy.Naresh ArshI have small query please give me solution for this.
my query is i want to delete a column from a table . -
Prasad AjinkyaKnow your DDL!
Also Google!
Alter table name drop column name; -
Neeraj Sharma
## Dropping one columnNaresh ArshI have small query please give me solution for this.
my query is i want to delete a column from a table .
ALTER TABLE table_name DROP COLUMN column_name;
##Dropping multiple columns
ALTER TABLE table_name DROP COLUMN (column_name1, column_name2,...); -
Kaustubh KatdareToo many assumptions here, right? ๐
-
Neeraj Sharma
I didn't get you.. ๐จKaustubh KatdareToo many assumptions here, right? ๐ -
Kaustubh Katdare
The original question does not talk about deleting a column from mysql database or excel or an HTML table. ๐ I just wish people could ask questions without making assumptions.Neeraj SharmaI didn't get you.. ๐จ -
Vishal Sharma
We should probably wait for the #-Link-Snipped-# to return and clarify that. But i'm sure its not an excel table column or word table column ๐ And the right click, delete doesn't workout on HTML ๐Kaustubh KatdareThe original question does not talk about deleting a column from mysql database or excel or an HTML table. ๐ I just wish people could ask questions without making assumptions. -
Rahulkumar200Try this
ALTER TABLE table_name
DROP COLUMN column_name; -
Rahulkumar200And if you wanna !"add some columns"! try this
ALTER TABLE table_name
ADD column_name column-definition; -
Vishal Sharma
already answered by #-Link-Snipped-#Rahulkumar200Try this
ALTER TABLE table_name
DROP COLUMN column_name;
You are reading an archived discussion.
Related Posts
Electricity Pylons have been with us since eternity. Their lattice structure made out of steel with four legs is immediately recognisable from miles. They are responsible for supporting overhead power...
SkyOrbiter is an interesting solar powered drone that aims to provide Internet access across the world. Developed by a Portuguese company that goes by the name 'Quarkson' successfully tested the...
Catching up with the trend of developing self driving cars, two Professors from Gujarat's Amiraj College of Engineering have built their own version of a driverless vehicle in India called...
I am in last sem of b.tech(civil) and still I dont know the practical knowledge in Civil engg that gonna be used in construction site.
I am jobless and dont...
Hi Guys, I'm sure that some of us here at CE must have heard about the recent change of rules that Telecom Companies in India are trying to bring up...