简体   繁体   English

将 Xml 文件数据插入 MySQL 表

[英]insert Xml file data into MySQL table

I want to insert the Xml file data into MySQL table,, by choosing which column to insert into,, using Java How will this be done?我想将 Xml 文件数据插入 MySQL 表中,通过选择要插入的列,使用 Java 这将如何完成?

It really depends on the format of your XML file.这实际上取决于您的 XML 文件的格式。 If your XML file is a direct export from the MySQL file, please refer to this question .如果您的 XML 文件是从 MySQL 文件直接导出的,请参考这个问题

If your XML is in some other format, then I would probably be using JAXB to parse XML into POJO, then write some logic to map the POJO into the database table. If your XML is in some other format, then I would probably be using JAXB to parse XML into POJO, then write some logic to map the POJO into the database table.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM