public void insertMemberAction() { String query = "INSERT INTO MEMBERS(MNO, MLASTNAME, MFIRSTNAME, MADDRESS, MREGDATE)" + "VALUES('" + jMnoTxt.getText() + "'," + "'" + jLastnameTxt.getText() + "'," + "'" + jFirstnameTxt.getText() + "'," + "'" + jAddressTxt.getText() + "'," + "TO_DATE('" + jRegistrationDateTxt.getText() + "','DD/MM/YY'))"; java.sql.Statement insertStmt; try { insertStmt = DvdClubJFrame.con.createStatement(); insertStmt.executeUpdate(query); insertStmt.close(); } catch (java.sql.SQLException e) { javax.swing.JOptionPane.showMessageDialog(this, e.getMessage()); } }
query
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)