0

Code(in Python):

cur.execute("SELECT * FROM ALL_BOOKS WHERE SUBJECT=\'BIO\';")

Error:

ORA-00933: SQL command not properly ended

1 Answer 1

1

Remove ; from the query and try:

cur.execute("SELECT * FROM ALL_BOOKS WHERE SUBJECT='\BIO\'")
Sign up to request clarification or add additional context in comments.

1 Comment

It was the semicolon actually. It wasn't needed there. Either ways, thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.