I want to select data from oracle DB using python and jaydebeapi. I'm trying to get data using next script:
bank_accounts = """
SELECT ACCOUNT_NUM, VALID_TO, CLIENT, CREATE_DT, UPDATE_DT
FROM ACCOUNTS where client = ?"""
clients = ['6948','3603','3919']
curs.execute(bank_accounts, clients[0])
But as result I'm getting an error:
java.sql.SQLException: java.sql.SQLException: Invalid column index
What can be wrong with it? How to pass params to .execute?