Memory Drive

반응형


 import groovy.sql.Sql
class A {
  static void main(String[] args) {

    def sql = Sql.newInstance("jdbc:db2://아이피:50000/데이터베이스명", "아이디","비밀번호", "com.ibm.db2.jcc.DB2Driver")
    sql.eachRow("select * from TABLENAME "){
      println it.컬럼명 + " ${it.컬럼명}"

    }
  }
}




심플
반응형