This week's book giveaway is in the
We're giving away four copies of
and have Sam Newman on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
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