db2_connect.py 169 B

1234567
  1. import ibm_db
  2. import ibm_db_dbi
  3. ibm_db_conn = ibm_db.connect('rbs05_db2', 'db2inst1', 'Gcbs12ma')
  4. conn = ibm_db_dbi.Connection(ibm_db_conn)
  5. conn.tables('SYSCAT', '%')