Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    @thebigk • Apr 11, 2015

    Naresh ArshI 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-aSUfhP • Apr 14, 2015

    Know your DDL!

    Also Google!

    Alter table name drop column name;

  • Neeraj Sharma

    @neeraj-iAaNcG • Apr 18, 2015

    Naresh ArshI 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

    @thebigk • Apr 18, 2015

    Too many assumptions here, right? ๐Ÿ˜

  • Neeraj Sharma

    @neeraj-iAaNcG • Apr 18, 2015

    Kaustubh KatdareToo many assumptions here, right? ๐Ÿ˜

    I didn't get you.. ๐Ÿ˜จ

  • Kaustubh Katdare

    @thebigk • Apr 18, 2015

    Neeraj SharmaI 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-pysGmK • Apr 18, 2015

    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.

    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-AzMcLQ • Apr 27, 2015

    Try this
    ALTER TABLE table_name
    DROP COLUMN column_name;

  • Rahulkumar200

    @rahulkumar200-AzMcLQ • Apr 27, 2015

    And if you wanna !"add some columns"! try this
    ALTER TABLE table_name
    ADD column_name column-definition;

  • Vishal Sharma

    @vishal-pysGmK • Apr 27, 2015

    Rahulkumar200Try this
    ALTER TABLE table_name
    DROP COLUMN column_name;

    already answered by #-Link-Snipped-#