Advertisement
Guest User

LiteSQL

a guest
Aug 17th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public static void onUpdate(String sql) {
  2. try {
  3. stmt.execute(sql);
  4. }catch (SQLException e) {
  5. e.printStackTrace();
  6. }
  7. }
  8. public static ResultSet onQuery(String sql) {
  9. try {
  10. return stmt.executeQuery(sql);
  11. } catch (SQLException e) {
  12. e.printStackTrace();
  13. }
  14. return null;
  15. }
  16. public static ResultSet onQueryRAW(String sql) throws SQLException {
  17. return stmt.executeQuery(sql);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement