[python-nl] INSERT statement met MySQLdb

Chris Niekel chris at niekel.net
Sun Jan 29 19:33:34 CET 2006


On Sat, Jan 29, 2000 at 06:14:36PM +0100, Math wrote:
>              conn =
>      MySQLdb.connect(host="localhost",user="root",passwd="admin",db="marathon")
>              curs = conn.cursor()
>              statement = "INSERT INTO deelnemers (naam) VALUES ('Math');"
>              curs.execute(statement)
>              curs.close()
>              conn.close()

curs.commit() erbij?

Succes,
Chris Niekel


-- 
    I've been down so long, if I'd cheer up, I'd still be depressed.
            - Lisa Simpson, Moanin' Lisa Blues.


More information about the Python-nl mailing list