MySQL Forums
Forum List  »  Connector/Python

Re: SQL SYNTAX ERROR IN PYTHON CODING
Posted by: Huu Da Tran
Date: April 15, 2009 11:33AM

no = cur.execute("select * from project.inv_list where Product_name like %s%%",(a1))

You need to double the percent sign, in your case, but that could be subject to SQL injection.

Huu Da
MySQL flirter

Options: ReplyQuote


Subject
Written By
Posted
Re: SQL SYNTAX ERROR IN PYTHON CODING
April 15, 2009 11:33AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.