MySQL Forums
Forum List  »  Connector/Python

Re: Python Connector
Posted by: Peeyush Gupta
Date: May 08, 2015 01:35AM

You missed a comma in while calling cursor execute.

In python (value) is treated as value, so you have to put a comma to make it a tuple

try something like this:
myCursor.execute(Query, ('FileTemplate',))

Options: ReplyQuote

Written By
May 07, 2015 12:37PM
Re: Python Connector
May 08, 2015 01:35AM

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.