You can follow the steps shown below to create a table in your database server. In our case, the database name is a library and the table name is books. The SQL query to create this table is shown below.
You may try the following code to update book information into books table.
1
2
3
4
5
6
7
8
9
10
package com.t4b.jdbc.mysql.test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class TestMain {
static {
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.