ODBC Driver for JD Edwards

Build 26.0.9771

Querying Data

After Connecting, you can execute a SQL statement and retrieve the results.

SELECT Procedure

You will need to obtain a cursor before executing any SQL. Once you have one, you can use the cursor's execute method.

cursor = cnxn.cursor()
cursor.execute("SELECT DocumentNumber, Amount FROM AccountsPayable.AccountLedger WHERE AccountNumber = '10001'")

Iterating over the Results

You can use a for loop to iterate over the rows of the resultset. Each row is presented as a tuple containing column values:

for (DocumentNumber, Amount) in cursor:
    print("DocumentNumber = {}, Amount = {}".format(DocumentNumber, Amount))

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9771