forums › forums › SQLyog › SQLyog: Bugs / Feature Requests › Feature Request: Avoid Column Names In Sql File
- This topic is empty.
-
AuthorPosts
-
-
January 15, 2007 at 8:51 pm #10131GraycodeMember
Currently the package produces the table column names on every INSERT statement.
insert into `mytbl`(`columna`,`columnb`,`columnc`,`columnd`) values ('a1', 'b1', 'c1', 'd1');
insert into `mytbl`(`columna`,`columnb`,`columnc`,`columnd`) values ('ax', 'bx', 'cx', 'dx');
That is fine for many uses, but the repetition of column names adds quite a bit of size to the SQL file. It would be helpful if there was an option to avoid the reproduction of column names.
insert into `mytbl` values ('a1', 'b1', 'c1', 'd1');
insert into `mytbl` values ('ax', 'bx', 'cx', 'dx');
Without the column names on the INSERT, the database assumes the same column order as the table definition. This makes having the column names irrelevant in backup / recovery scenarios, especially when the schema is exported along with the data in the SQL file.
Thank you for any consideration.
-
January 16, 2007 at 5:04 am #23236peterlaursenParticipant
Actually we changed that about 1 year ago to create FULL insert statements.
That was a repeated user request actually .. and I think you can't make everybody happy!
Two comments:
1) If you use BULK inserts like
Code:insert into `mytbl`(`columna`,`columnb`,`columnc`,`columnd`) values ('a1', 'b1', 'c1', 'd1'),('a2', 'b2', 'c2', 'd2')…('an', 'bn', 'cn', 'dn');.. the 'overhead' won't be much
Read about BULKs and CHUNKs here: http://www.webyog.com/faq/24_101_en.html
2) The (scheduled) backup powertool of the ENTERPRISE version has the option to use FULL inserts or not. See image.
-
January 18, 2007 at 2:19 am #23237GraycodeMember
The Bulk and Chunk options don't do what I want, and I don't always know an advanced schedule of when I'll want a dump. It would be a useful option to either have or not have the columns listed.
I suppose you're correct in not being able to make everyone happy (at least not all the time).
Thanks anyway!!
PS – The (*.cpp) are missing from the Community version 5.22a zip.
-
January 18, 2007 at 5:17 am #23238peterlaursenParticipant
Still the backup 'powertool' of ENTERPRISE version has the option.
the .zip.
Strange! we just downloaded and unzipped, and everything is there!
-
January 18, 2007 at 4:42 pm #23239GraycodeMemberpeterlaursen wrote on Jan 17 2007, 11:17 PM:Strange! we just downloaded and unzipped, and everything is there!
Strange indeed. I downloaded again, still got the same. Used 3 different ZIP packages, none shows any *.cpp files. It has build, include, and lib but has no src subdirectory. Used raw editor to look at the zip binary, no *.cpp filenames seen. The zip file size is 5,828,270 bytes :huh:
-
January 19, 2007 at 5:25 am #23240peterlaursenParticipant
My mistake. I checked the wrong file.
You are right!
-
January 19, 2007 at 6:12 am #23241adarshMember
Its seems to be a mistake when we replace the source from 5.22 to 5.22a. Now we uploaded correct source.
here is the link to download.
http://www.webyog.com/en/downloads.php
Adarsh
webyog
-
-
AuthorPosts
- You must be logged in to reply to this topic.