Example: How insert records in to Database using JDBC API

The following example describes how to insert records into Employee table in MySQL using JDBC API.


SOURCE:InsertDB.java
OUTPUT:
Enter value for Emp Id : 
14234
Enter value for Emp Name : 
jack merlin
record inserted successfully
Do you want to continue to insert : (yes/no)
SHARE

    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment