Guest User

Untitled

a guest
May 7th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import kinterbasdb
  2. con = kinterbasdb.connect(dsn='/var/lib/firebird/2.1/data/employee.fdb', user='sysdba', password='masterkey')
  3. # Create a Cursor object that operates in the context of Connection con:
  4. cur = con.cursor()
  5. # Execute the SELECT statement:
  6. cur.execute("select * from employee")
  7. # Retrieve all rows as a sequence and print that sequence:
  8. print cur.fetchall()
Add Comment
Please, Sign In to add comment