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 .

Replies

  • Kaustubh Katdare
    Kaustubh Katdare
    Naresh Arsh
    I have small query please give me solution for this.
    my query is i want to delete a column from a table .
    Right click on the column and select 'Delete'. It's very easy.
  • Prasad Ajinkya
    Prasad Ajinkya
    Know your DDL!

    Also Google!

    Alter table name drop column name;
  • Neeraj Sharma
    Neeraj Sharma
    Naresh Arsh
    I have small query please give me solution for this.
    my query is i want to delete a column from a table .
    ## Dropping one column
    ALTER TABLE table_name DROP COLUMN column_name;

    ##Dropping multiple columns
    ALTER TABLE table_name DROP COLUMN (column_name1, column_name2,...);
  • Kaustubh Katdare
    Kaustubh Katdare
    Too many assumptions here, right? ๐Ÿ˜
  • Neeraj Sharma
    Neeraj Sharma
    Kaustubh Katdare
    Too many assumptions here, right? ๐Ÿ˜
    I didn't get you.. ๐Ÿ˜จ
  • Kaustubh Katdare
    Kaustubh Katdare
    Neeraj Sharma
    I didn't get you.. ๐Ÿ˜จ
    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.
  • Vishal Sharma
    Vishal Sharma
    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.
    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 ๐Ÿ˜›
  • Rahulkumar200
    Rahulkumar200
    Try this
    ALTER TABLE table_name
    DROP COLUMN column_name;
  • Rahulkumar200
    Rahulkumar200
    And if you wanna !"add some columns"! try this
    ALTER TABLE table_name
    ADD column_name column-definition;
  • Vishal Sharma
    Vishal Sharma
    Rahulkumar200
    Try this
    ALTER TABLE table_name
    DROP COLUMN column_name;
    already answered by #-Link-Snipped-#

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...