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

Full Insert (sql Export)

forums forums SQLyog SQLyog: Bugs / Feature Requests Full Insert (sql Export)

  • This topic is empty.
Viewing 10 reply threads
  • Author
    Posts
    • #9393
      larsen
      Participant

      Hello,

      is there a possibility to have SQLyog create full insert statements when exporting to sql queries like phpMyAdmin does?

      I have reorderd the table structure through creating a copy of the table and now want to import the data of the old table. As the order of the table has changed I would have to manually insert the field names so that the data could be imported to the right fields.

      It would also be nice if I could re-arrange the fields with the “Alter Table” window.

      Lars

    • #19987
      larsen
      Participant

      Ok, I just found that I can reorder the table structure already 😀

      Could you add a button to the “alter table” window, too?

      Full inserts would still be nice.

    • #19988
      peterlaursen
      Participant

      My ignorance – what is “full insert statements” ??

      BTW: I DO NOT ACCEPT the use of phpmyadmin as a reference … 😛

    • #19989
      larsen
      Participant
      peterlaursen wrote on Dec 8 2005, 10:00 AM:
      My ignorance – what is “full insert statements” ??

      BTW: I DO NOT ACCEPT the use of phpmyadmin as a reference …  😛

      [post=”8146″]<{POST_SNAPBACK}>[/post]

      “Full inserts” mean that the columns are stated in the sql string.

      Here is an example of what SQLyog looks like:

      INSERT INTO `tableX` VALUES (value1, 'value2', value3)

      Here an example of phpM… I mean, ermm, another MySQL Frontend 😛

      INSERT INTO `tableX` (`field1`, `field2`, `field3`) VALUES (value1, 'value2', value3)

    • #19990
      peterlaursen
      Participant

      Thanks for the enlightment!

      Well, yes that could be useful too.

      However you could also use the DATA SYNC tool. Import the .sql to a 'dummy' database and sync the 'dummy' with the 'real' DB. It gives you more options, I think (row filtering, column filtering).

    • #19991
      vygi
      Member
      peterlaursen wrote on Dec 8 2005, 11:54 AM:
      Thanks for the enlightment!

      Well, yes that could be useful too.

      However you could also use the DATA SYNC tool.  Import the .sql to a 'dummy' database and sync the 'dummy' with the 'real' DB.  It gives you more options, I think (row filtering, column filtering).

      [post=”8151″]<{POST_SNAPBACK}>[/post]

      I'm not really sure but I think that Data Synchronization will fail if tables have different field order.

      See this thread: http://www.webyog.com/forums/index.php?showtopic=1841

    • #19992
      peterlaursen
      Participant

      @vygi

      I think you are right, and if that is the case I'm wrong! <_<

    • #19993
      Ritesh
      Member

      As the attached screenshot suggest, you can select Generate complete INSERT statements 😀

    • #19994
      peterlaursen
      Participant

      looks like Ritesh found a shortcut to the BIGGRIN smiley today! 😀

    • #19995
      larsen
      Participant

      I found it, too 😀

    • #19996
      peterlaursen
      Participant

      @vygi, you are/were right.

      Hard to remember all details as MySQL (and SQLyog too) becomes more complex!

      I wrote up this FAQ: http://www.webyog.com/faq/10_84_en.html

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