MySQL Forums
Forum List  »  Connector/Python

Re: Using Python variables in MySQL INSERT statement SOLVED
Posted by: Cheese Cake
Date: June 04, 2008 12:51PM

I've solved it by using:

cur.execute('insert into data values ("%s","%s","%s")' % (variable1,variable2,variable3))

Options: ReplyQuote


Subject
Written By
Posted
Re: Using Python variables in MySQL INSERT statement SOLVED
June 04, 2008 12:51PM


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.