Hello,
I have modified the above code, you can see in the code that is the instruction are written in the code of how to connect to the database. Check it out
Code:
public void insert () (
qryins String = "insert into table name (Variable,Variable) Values ('"+....+"','"+......+"')";
try (/ / connection and query execution
s = con.createStatement ();
s.executeUpdate (qryins);
System.out.println (qryins);
/ / s.close () / / Close the statement
ResultSet r = s.executeQuery (querySelectId);
)
) Catch (SQLException ex) (
System.err.println (">>>>>>> Standard Connection <<<<<<<<");
System.err.println (ex.getMessage ());
)
)
Bookmarks