Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Exporting/backup Help

forums forums SQLyog Using SQLyog Exporting/backup Help

  • This topic is empty.
Viewing 2 reply threads
  • Author
    Posts
    • #28996
      navyashree.r
      Member
      Kanng wrote on May 29 2009, 05:23 AM:
      Alright so I don't want to backup the WHOLE table only a single row, I've been looking around for the right SQL statement to do so I tried this:

      BACKUP FROM `abcdefg` WHERE `entry` BETWEEN #### AND ####;

      Hi,

      To backup a single row from a table you can use the below SQL query by giving the exact path where to Backup.

      Quote:
      “SELECT ….. INTO OUTFILE”

      For example,

      “SELECT * FROM Table1 where column1 between #### AND #### INTO OUTFILE 'E:Test.SQL';”

      FYI,

      http://dev.mysql.com/doc/refman/5.1/en/select.html#id3854478

      Regards,

      Navya

    • #28997
      Kanng
      Member
      navyashree.r wrote on May 28 2009, 08:06 PM:
      Hi,

      To backup a single row from a table you can use the below SQL query by giving the exact path where to Backup.

      For example,

      “SELECT * FROM Table1 where column1 between #### AND #### INTO OUTFILE 'E:Test.SQL';”

      FYI,

      http://dev.mysql.com/doc/refman/5.1/en/select.html#id3854478

      Regards,

      Navya

      Alright cool thank you!

    • #28998
      peterlaursen
      Participant

      The characters must be escaped so correct is

      “SELECT * FROM Table1 where column1 between #### AND #### INTO OUTFILE 'E:\Test.SQL';”

      (Windows file paths are a litle inconvenient in MySQL)

Viewing 2 reply threads
  • You must be logged in to reply to this topic.