[Tutor] This should be easy

Pujo Aji 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 ?

pujo

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
> database.
> 
> 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
> 
> thanks
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>


More information about the Tutor mailing list