Add update api
This commit is contained in:
@@ -126,9 +126,19 @@ public class TippligaSQLConnector {
|
||||
try {
|
||||
stmt = con.createStatement();
|
||||
rset = stmt.executeQuery(queryString);
|
||||
} catch (SQLException throwables) {
|
||||
throwables.printStackTrace();
|
||||
} catch (SQLException e) {
|
||||
logger.error(e.getStackTrace());
|
||||
}
|
||||
return rset;
|
||||
}
|
||||
|
||||
public void executeUpdate (String queryString){
|
||||
Statement stmt;
|
||||
try {
|
||||
stmt = con.createStatement();
|
||||
stmt.executeUpdate(queryString);
|
||||
} catch (SQLException e) {
|
||||
logger.error(e.getStackTrace());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user