![]() |
|
[Java] Connecting with multiple Databases, getting Data and writing data to a new database - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Java] Connecting with multiple Databases, getting Data and writing data to a new database (/showthread.php?tid=4267059) |
Connecting with multiple Databases, getting Data and writing data to a new database - minoru - Jun 4, 2014 So, i guess this should be really easy, but i started with Java just a week ago and have to finish a little team project this semester. I already have a program that creates databases, tables and adds data into it. That wasn't to hard since there are lots of tutorials on this topic. Now i have to write a program that is able to connect with my databases, get their data and merge it into a new larger database containing all the data from the other DBs. And i just can't find any help on that since 3 days... Someone told me the easiest way to to it, would be to get one Database into Java and copy the data to the second database and he wrote down a bit of code for me: Code package Databse;He told me i that i have to iterate through the vector now. Something like "for(int i=0;i < alleDaten.length; i++) doInsert(alleDaten[i]);" and that i have to write a function "doInsert" aswell... I just dont know how i to do this and where to start. I don't even know what i should search for in google to get this done... So could anyone help me with that?🤮[/code] |