|
Python Connector for InterBase Using the module - Python Connector for InterBase |
|
To retrieve data from InterBase:
import devart.interbase as interbase
connect() module method and obtain a connection object.
my_connection = interbase.connect(
Server="your_server",
Database="your_database",
UserId="your_username",
Password="your_password",
ClientLibrary="your_client_library"
)
cursor object using the cursor() connection method.
my_cursor = my_connection.cursor()
execute() cursor method.
my_cursor.execute("SELECT * FROM employees")
fetch*() cursor methods.
for row in my_cursor.fetchall():
print(row)