dynamic « Table « Java Database Q&A





2. dynamically create tables    coderanch.com

3. dynamically finding the tables in a database    coderanch.com

I am trying to find out the tables presesnt in the database through java program. I have correctly configured the DSN but table name "emp" and "employee" present in the database are not coming in the output. Tables are made in MS access. I have tried with oracle also but no output is coming!!! Can anyone detect the error? import java.sql.*; ...

4. How to create table dynamically in JDBC?    coderanch.com

hi friends, i am trying to create table dynamically. first import requried things. System.out.println("I AM IN CREATE TABLE BLOCK"); //create table tablename(sno number(10),sname varchar2(20),sadd varchar2(20)); System.out.println("ENTER TABLE NAME THAT YOU WANT TO CREATE . ."); tabname=dis.readLine(); //System.out.println("ENTER THE RANGE OF TABLE . . ."); //range=Integer.parseInt(dis.readLine()); System.out.println("ENTER SERIAL NO: FOR 1ST COLUMN ...."); no=dis.readLine(); //System.out.println("ENTER THE RANGE OF 1ST COLUMN . . ...