• Post Reply Bookmark Topic Watch Topic
  • New Topic

create database using jdbc

 
Kiran Kudtarkar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i create database using jdbc.
Please help me out with the syntax.
 
Snigdha Solanki
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Jamie
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!