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
Customer Requirements for Developers
this week in the
JDBC and Relational Databases
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
Don't get me started about those stupid
subject: Creating Tables
drop down menu
Table Design using Absolure or Relative
Query on BMP
Problem while retrieving values from table
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015