I want to make java code that creates a sample database in 3-4 DBMS like mysql, oracle sql, sql server etc installed on any OS – windows, linux distro, Mac OS etc.
How can I make my code:
- automatically (or with help from a user) locate the jdbc driver in the computer.
- execute a fixed set of sql commands which will work regardless of the DBMS used.
Please suggest how I can do all these things.
EDIT:
This will be a back end kind of app.
I am a little new to JDBC, so I am looking for simple/elementary solutions to begin with.
Will switch to advanced ones later.
Thanks.
1 Answer