Skip to content
Advertisement

cx_Oracle: Error 933. ORA-00933: “SQL command not properly ended”: SQL command error?

Similar questions have been asked before but I’ve still been unable to identify a solution for this. My code:

The find_command looks like this:

I’ve tried with and without a semi-colon at the end of the SQL query, but still fails. I know the connection works because I have another query (see below) and this writes data to the table. It’s just when tried to find rows which contain certain values do I get this error message.

Where am I going wrong?

Cheers, pymat.

Advertisement

Answer

As mentioned in the comments above, use parameters as in the following:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement