I have 1 table in mysql database and another table in oracle database. I am writing an utility to get data from one table and insert into another table.
The following is my design of the utility tool in swing.
Textarea for select query; Another Textarea for insert query; A button called load data.
Now if i click the load data, select query should run and pick up the data. And execute the insert query to insert in to the table.
Note :Since it is an utility tool, the table names are dynamic.
The problem i am facing right now is with the insert query. How can i dynamically find the desc of the table so that i can use setString, setLong or ect during the run time?