SHARE
TWEET

Untitled

a guest Nov 6th, 2018 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Shell{
  2.    private groovy.sql.Sql sql
  3.    Shell(){
  4.       sql = Sql.newInstance("jdbc:oracle:thin:@$TNS", login, password, driver)
  5.    }
  6.  
  7.    String callSql(String stmnt){
  8.       return sql.firstRow(stmnt).Variablename
  9.    }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top