Home | » | Java | » | Advance Java | » | Java Database Connectivity | » | Inserts Records |
---|
This example inserts records into the Access table 'SchoolClasses' on the harddisk, using classes of the java.sql package the rows inserted.
To insert rows into the table 'StudentTable' the executeUpdate() method is used. To display the results retrieved from the table the rs.next() method is used.
The Output of InsertRecords is as shown below:
|
Create the Database. | |
Creating a DSN. | |
Connecting to a Database. | |
Creating & Executing Statements. | |
Closing a database connection. |
JDBC - Programming:
View records from the Access table. | |
Inserts records into the Access table. | |
Updates records into the Access/SQL table. | |
Deletes records from the Access table. | |
Drops the Access/SQL table. |
JDBC - Working With User Interfaces - Using Swing Compoents
No comments:
Post a Comment