Re: Problem with an insert on MySQL-Python. (SOLVED)
I have already found the solution: it seems that in Python this query doesn't need 'into' (as is need in MySQL) and the string value has to be between double quotes, which I think that it's a little bit redundant, but that's all. So the correct query is:
curs.execute('insert into directory (idfather,dname) values (2,"/hi world")')
Subject
Written By
Posted
Re: Problem with an insert on MySQL-Python. (SOLVED)
January 24, 2008 03: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.