Question:
How to store the output of a java program in netbeans into MYSQL tables ?
anonymous
2013-04-26 09:00:22 UTC
I am using DOM Parsing method to extract the data of an XML file. The information is extracted by calling a function defined in the code for DOM parsing. I need to store the extracted information into a table as soon as it is extracted(step by step), i.e., as soon as the function is called and the data is extracted, it should be stored in the MYSQL. I have already created the tables. Any help would be appreciated.
Three answers:
anonymous
2013-04-26 09:17:49 UTC
http://docs.oracle.com/javase/tutorial/jdbc/basics/tables.html under 'Populating Tables with JDBC API' may help
deonejuan
2013-04-26 12:20:13 UTC
If you have time, look at Java Persistence API. JPA writes the SQL for you depending upon your JDBC. JPA is much like Hibernate without all the JEE overhead.
lokesh
2013-04-26 09:03:46 UTC
first create tables and then adjust properties in MySQL then u can do it


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...