Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def SQLBridge(command, isQuery=True):
- with fdb.connect(dsn=<Path>, user=<user>, password=<password, charset="UTF8") as con:
- cur = con.cursor()
- cur.execute(command)
- if isQuery:
- result = cur.fetchall()
- else:
- con.commit()
- cur.close()
- con.close()
- return result
- SQLBridge("select list(lastcode, ',') from customer where objid in (select customer from saletable)")[0]
Add Comment
Please, Sign In to add comment