Results 1 to 1 of 1
-
Creating tables in database using executeupdate(..)
Tables can be created in the database using executeUpdate(…) method. Following example shows how to do that.
Java Code:String createStaudents = "create table STUDENTS " + "(STUD_ID INTEGER, STUD_NAME VARCHAR(40), " + "STREET VARCHAR(40), CITY VARCHAR(20), " + "STATE CHAR(2), ZIP CHAR(5))"; stmt.executeUpdate(createStudents);
Similar Threads
-
Listing tables of a database
By Java Tip in forum Java TipReplies: 0Last Post: 02-12-2008, 09:30 AM -
caching the tables
By jayashree in forum JDBCReplies: 0Last Post: 01-30-2008, 06:43 AM -
How to read block of rows from database tables
By lmenaria in forum JDBCReplies: 1Last Post: 08-08-2007, 01:22 AM -
how to sort 2 tables
By valery in forum AWT / SwingReplies: 1Last Post: 08-06-2007, 08:30 PM -
Updating into 2 tables in the DB
By yuchuang in forum New To JavaReplies: 2Last Post: 05-12-2007, 06:54 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks