|
Java™ by example!
|
|
|
How do I create a database through JDBC?
JDBC is not intended to manage databases. It's used to connect to them. Creating a database is not standard, every DMBS has another way of doing it. If you're willing to give up portability accross databases, there are ways. For example, in mysql, you can connect to an existing database and invoke executeUpdate to create a new database. Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|