forums › forums › SQLyog › SQLyog: Bugs / Feature Requests › Full Insert (sql Export)
- This topic is empty.
-
AuthorPosts
-
-
December 8, 2005 at 8:50 am #9393larsenParticipant
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
-
December 8, 2005 at 8:55 am #19987larsenParticipant
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.
-
December 8, 2005 at 10:00 am #19988peterlaursenParticipant
My ignorance – what is “full insert statements” ??
BTW: I DO NOT ACCEPT the use of phpmyadmin as a reference … 😛
-
December 8, 2005 at 10:40 am #19989larsenParticipantpeterlaursen 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)
-
December 8, 2005 at 10:54 am #19990peterlaursenParticipant
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).
-
December 8, 2005 at 11:14 am #19991vygiMemberpeterlaursen 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
-
December 8, 2005 at 11:20 am #19992peterlaursenParticipant
I think you are right, and if that is the case I'm wrong! <_<
-
December 8, 2005 at 11:26 am #19993RiteshMember
As the attached screenshot suggest, you can select Generate complete INSERT statements 😀
-
December 8, 2005 at 11:40 am #19994peterlaursenParticipant
looks like Ritesh found a shortcut to the BIGGRIN smiley today! 😀
-
December 8, 2005 at 11:41 am #19995larsenParticipant
I found it, too 😀
-
December 9, 2005 at 1:56 am #19996peterlaursenParticipant
@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
-
-
AuthorPosts
- You must be logged in to reply to this topic.