Answer the question
In order to leave comments, you need to log in
How to "climb" FireBird DB through Python?
Good afternoon! There is the following database (FireBird)
How can I get into this EVENTS table through Python and print the data, let's say in print?
Wrote this:
import fdb
con = fdb.connect(dsn='DESKTOP-TVUF8FU:D:/Dev/Python/FireBird_test/GLOBALMZSH.FDB', user='sysdba', password='masterkey')
cur = con.cursor()
test = cur.execute("select * from EVENTS")
print (test)
<fdb.fbcore.Cursor object at 0x000002798F32E2B0>
Answer the question
In order to leave comments, you need to log in
Didn't work with FireBird, but you should probably use fetchall():
import fdb
con = fdb.connect(dsn='DESKTOP-TVUF8FU:D:/Dev/Python/FireBird_test/GLOBALMZSH.FDB', user='sysdba', password='masterkey')
cur = con.cursor()
cur.execute("select * from EVENTS")
test = cur.fetchall()
print (test)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question