MySQL Forums
Forum List  »  Backup

mysqldump --extended-inserts row on new line
Posted by: Jordi Albarral
Date: May 16, 2011 09:11AM

Hi,

how to export in this format please ...

INSERT INTO T1 (c1,c2) VALUES
('A','B'),
('C','D'),
('E','F'),
('G','H'),
...

system("mysqldump --extended-inserts -u root DBNAME TABLENAME > FILE");


Note: under windows, because i found that

$ mysqldump --extended-insert ... database | sed 's$),($),\n($g'

but doesnt work

regards

Options: ReplyQuote


Subject
Views
Written By
Posted
mysqldump --extended-inserts row on new line
5909
May 16, 2011 09:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.