Results 1 to 3 of 3

Thread: mysqldump where query

  1. #1
    Join Date
    May 2009
    Posts
    44

    mysqldump where query

    I am facing an issue with mysql where i need to delete some part of table where i am using mysqldump table query for that i am using the following query for it.

    mysqldump -u user -p database="MYDATABASE" Query="SELECT * FROM
    TABLE WHERE State='NV';


    I don't have any idea about it . Can anyone help me out with this issue. Thanks in Advance.

  2. #2
    Join Date
    Dec 2007
    Posts
    93

    sql query to delete table portion

    For deleting any portion of table you need to use the following query

    alter table TABLE_NAME DROP column ONE, DROP column TWO, DROP column THREE;

    If you want to drop all columns this will not work if you want to drop it then you need to use DROP TABLE.

  3. #3
    Join Date
    Jan 2009
    Posts
    91

    mysqldump where query

    It seems that there is some issue in your query, however you can run the following query
    Code:
    mysqldump -p -u username databasename tablename tablename.sql
    to take backup. When you will run this query it will ask you for password and then you would be able to delete it.

Similar Threads

  1. Query in SQL v/s Query in Oracle
    By Satchel in forum Software Development
    Replies: 4
    Last Post: 29-12-2010, 07:19 AM
  2. mysqldump in MySQL database
    By Caden Fernandes in forum Software Development
    Replies: 4
    Last Post: 04-03-2010, 11:02 PM
  3. Want to make query dependent on another query.
    By MACE in forum Software Development
    Replies: 4
    Last Post: 01-02-2010, 05:22 PM
  4. MySQL query in a query
    By Rail racer in forum Software Development
    Replies: 3
    Last Post: 21-07-2009, 07:06 PM
  5. Turn on MySQL query cache to speed up query performance
    By DMA2Superman in forum Software Development
    Replies: 3
    Last Post: 07-07-2009, 10:26 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,021,109.79193 seconds with 16 queries