[Tutor] This should be easy
ajikoe at gmail.com
Mon Jul 18 21:50:35 CEST 2005
the code looks ok for me,
Can you post more specific, including the error ?
On 7/18/05, nephish <nephish at xit.net> wrote:
> Hey there,
> i have a script that i am trying to use to add a record to a MySQL
> i keep getting a syntax error.
> this works
> cursor.execute("INSERT INTO Table ( numberone ) VALUES ( 'one');")
> but this does not
> cursor.execute("INSERT INTO Table ( numberone, numbertwo ) VALUES
> ( 'one','two');")
> what is getting scrambled here?
> the error i get is syntax error in MySQL query, check the documentation,
> blah blah blah
> Tutor maillist - Tutor at python.org
More information about the Tutor