0
I would like to know if there is any argument in select that changes the format of result to be used as dump. Example:
create table `table_name` (`id` int, `value` text);
insert into `table_name` values (1, "a"), (2, "b"), (3, "c");
select * from `table_name`;
/* Result: "insert into `table_name` values (1, "a"), (2, "b"), (3, "c")" */
I’ve never seen anything like this by cli (other than G in mysql), but due to the fact that many database tools have this option to export the query result as Insert, I thought it might be possible. I believe the most appropriate approach would be to carry out the
concat
as you commented.– Paulo Martins