Using SQL with IBM_DB connector in Python
问题 Has anyone used the ibm_db package with IBM's Python for PASE to update Db2 files on IBM i (formerly AS/400)? I want to use Python scripts (from QSH) to update the Db2 database. My purpose is to populate values at runtime and update the fields of Db2 files. It works with static (hardcoded) values, but not dynamic ones. Here is what I am trying, but it is not working: import ibm_db c1 = ibm_db.connect('*LOCAL','userid','password') sql = """INSERT INTO TEMPLIB.TEMPPF (TYPE, DRPARTY, CRPARTY,