Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

create database

  Asked By: Colleen    Date: Apr 06    Category: Java    Views: 670
  

i want to create a database(mdb) using java.
is it possible?
if so, plz do let me know abt how can it be done.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Brendan Smith     Answered On: Apr 06

i don't know what you want briefly but i will told you what i know
if you want to create  data @ run time
you can create empty database  with access and at the run time make a query to
create table and so like this

String query="CREATE TABLE COFFEES (COF_NAME VARCHAR(32), SUP_ID INTEGER,
PRICE FLOAT,
SALES INTEGER,
TOTAL INTEGER)";
Statement st=connection1.createStatement();
st.executeUpdate(query);

 
Didn't find what you were looking for? Find more on create database Or get search suggestion and latest updates.




Tagged: