[英]Why does this query throw this error in Python?
Code(in Python):代码(在 Python 中):
cur.execute("SELECT * FROM ALL_BOOKS WHERE SUBJECT=\'BIO\';")
Error:错误:
ORA-00933: SQL command not properly ended
Remove ;
删除
;
from the query and try:从查询中尝试:
cur.execute("SELECT * FROM ALL_BOOKS WHERE SUBJECT='\BIO\'")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.