Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String [] args) {
- try {
- Class.forName("oracle.jdbc.driver.OracleDriver");
- Connection con = DriverManager.getConnection("jdbc:oracle:thin:user/pass@host:1522/base");
- Statement stmt = con.createStatement();
- String sql ="Select * from acesso where nrdocumento ='999999999999'";
- ResultSet res = stmt.executeQuery(sql);
- while (res.next()); {
- String hash = res.getString(3);
- System.out.println(hash);
- }
- con.close();
- }
- catch (Exception e ) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement