jdbc insert example from input values
// 2. Create a statement
String sql = "insert into employees "
+ " (last_name, first_name)" + " values (?, ?)";
myStmt = myConn.prepareStatement(sql);
// set param values
myStmt.setString(1, lastName);
myStmt.setString(2, firstName);
// 3. Execute SQL query
myStmt.executeUpdate();