File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Joined: Aug 11, 2000
Jul 11, 2002 14:56:00
How do I automate the creation of tables with
? Are there actual function calls or must I execute a generic sql statement such as CREATE TABLE ...
Joined: Sep 07, 2000
Jul 11, 2002 22:08:00
You can use executeUpdate method to execute SQL DDL Statements. statements that create a table,alter a table, or delete a table are examples of DDL statements.
Connection con; ... Statement stmt = con.createStatement(); stmt.executeUpdate("CREATE TABLE EMPLOYEE " + "(NAME VARCHAR(32), ID INTEGER)");
[ July 11, 2002: Message edited by: Snigdha Solanki ]
Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
I agree. Here's the link:
- it saves me about five hours per week
subject: Creating Tables
Query on BMP
Table Design using Absolure or Relative
drop down menu
Problem while retrieving values from table
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013