This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes create database using jdbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "create database using jdbc" Watch "create database using jdbc" New topic

create database using jdbc

Kiran Kudtarkar

Joined: Mar 31, 2002
Posts: 2
How do i create database using jdbc.
Please help me out with the syntax.
Snigdha Solanki
Ranch Hand

Joined: Sep 07, 2000
Posts: 128
If you want to create tables, you can use executeUpdate method of java.sql.Statement interface.executeUpdate is used to execute an SQL INSERT, UPDATE or DELETE statement.

Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

Originally posted by Kiran Kudtarkar:
How do i create database using jdbc.
Please help me out with the syntax.

Sorry not an option through jdbc. You can call a VB function via JNI to create an access database or some other native code to create a database.
I agree. Here's the link:
subject: create database using jdbc