MySQL Forums
Forum List  »  Connector/Node.js

Importing .Xml file to MySql
Posted by: Bharath G
Date: March 02, 2010 11:48PM

Hello There,

I am using the following command to import data in .xml file to MySql database:

mysql> INSERT INTO network (NetworkId,State,NetworkName,DnSetup,DateCreation) VALUES(LOAD_FILE('C:\data_xml.xml'));

I am getting the following error:
ERROR 1136 (21S01): Column count doesn't match value count at row 1

Please let me know how to resolve this issue.

Options: ReplyQuote


Subject
Written By
Posted
Importing .Xml file to MySql
March 02, 2010 11:48PM


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.