I'm aware of the recent mysqldump change, in that it now by default
enables some optimizations.
One of those optimizations is to use single insert statements, instead
of separate insert statements, each on their own lines.
I'm also aware of the --skip-opt / -e / --skip-extended-insert
But what I'd like is a combination of having a single insert statement,
but with each record in its own line, like so:
INSERT INTO `article` (`id`, `title`, `text`) VALUES
(1, 'test', 'this is a test'),
(2, 'test2', 'also a test');
--skip-opt or --skip-extended-insert isn't it, because that'll give me:
INSERT INTO `article` (`id`, `title`, `text`) VALUES (1, 'test', 'this
is a test');
INSERT INTO `article` (`id`, `title`, `text`) VALUES (2, 'test2', 'also
a test');
If this can't be done with mysqldump, does anyone know of an
alternative command-line runnable utility? Thanks in advance!
enables some optimizations.
One of those optimizations is to use single insert statements, instead
of separate insert statements, each on their own lines.
I'm also aware of the --skip-opt / -e / --skip-extended-insert
But what I'd like is a combination of having a single insert statement,
but with each record in its own line, like so:
INSERT INTO `article` (`id`, `title`, `text`) VALUES
(1, 'test', 'this is a test'),
(2, 'test2', 'also a test');
--skip-opt or --skip-extended-insert isn't it, because that'll give me:
INSERT INTO `article` (`id`, `title`, `text`) VALUES (1, 'test', 'this
is a test');
INSERT INTO `article` (`id`, `title`, `text`) VALUES (2, 'test2', 'also
a test');
If this can't be done with mysqldump, does anyone know of an
alternative command-line runnable utility? Thanks in advance!
Comment