java - Query Does not return results Sqlite -


try {     class.forname("org.sqlite.jdbc");      connection connit  = drivermanager.getconnection("jdbc:sqlite://c://users//asus//dropbox//projectdata.sqlite");      string query1= "insert email (subject,message) values(?,?)";     preparedstatement pst=connit.preparestatement(query1);     pst.setstring(1, subject.gettext());      pst.setstring(2, message.gettext());      joptionpane.showmessagedialog(null, "message sent");     pst.executequery();     pst.close();     connit.close(); } catch (exception e) {     e.printstacktrace(); } 

hey guys, know it's silly mistake can't seem find it. can understand want send data on table. please help. error squery not return results.


Comments

Popular posts from this blog

methods - python can't use function in submodule -

reactive programming - RxJava: retrying map actions -

Puppet elasticsearch module (class vs define) -