File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes create table.. which method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "create table.. which method?" Watch "create table.. which method?" New topic

create table.. which method?

tormod eriksen
Ranch Hand

Joined: Jan 23, 2002
Posts: 52
I wonder is it fine to use any of the two methods
-Statement : execute
-Statemetn : executeUpdate
when one is to pass a create table .. ddl statement to a database?
Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Both will serve the purpose i think.But generally,DDL statements like create,alter,drop are used with execute() and DML statements like insert,update and etc are used with exeuteUpdate() method.
I agree. Here's the link:
subject: create table.. which method?
It's not a secret anymore!