![]() |
![]() |
![]() |
|
![]() |
|
![]() |
java.sql
Code Samples Index These code examples and other materials are subject to Sun Microsystems, Inc. Legal Terms
Creating a Database TableThis example creates a table called ``mytable'' with three columns: COL_A which holds strings, COL_B which holds integers, and COL_C which holds floating point numbers.try { Statement stmt = connection.createStatement(); stmt.executeUpdate("CREATE TABLE mytable ( COL_A VARCHAR(100), COL_B INTEGER, COL_C FLOAT)"); } catch (SQLException e) { }
|
[ This page was updated: 11-Sep-2000 ] |
|
For more information on Java technology and other software from Sun Microsystems, call: (800) 786-7638 Outside the U.S. and Canada, dial your country's AT&T Direct Access Number first. |
![]() Copyright © 1995-2000 Sun Microsystems, Inc. All Rights Reserved. Terms of Use. Privacy Policy. |