Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import kinterbasdb
- con = kinterbasdb.connect(dsn='/var/lib/firebird/2.1/data/employee.fdb', user='sysdba', password='masterkey')
- # Create a Cursor object that operates in the context of Connection con:
- cur = con.cursor()
- # Execute the SELECT statement:
- cur.execute("select * from employee")
- # Retrieve all rows as a sequence and print that sequence:
- print cur.fetchall()
Add Comment
Please, Sign In to add comment