Python MySQL problem with input to table..!

2007-06-29 Thread hiroc13
import MySQLdb db = MySQLdb.connect (host = localhost, user = root, passwd = pass, db = base1) c = db.cursor () c.execute( INSERT INTO table1 (prvo, drugo) VALUES ('test', '1') ) c.execute(SELECT * FROM table1) res = c.fetchall () print res When I start this code I get ((15L, 'test',

Re: Python MySQL problem with input to table..!

2007-06-29 Thread Justin Ezequiel
On Jun 29, 4:26 pm, hiroc13 [EMAIL PROTECTED] wrote: import MySQLdb db = MySQLdb.connect (host = localhost, user = root, passwd = pass, db = base1) c = db.cursor () c.execute( INSERT INTO table1 (prvo, drugo) VALUES ('test', '1') ) c.execute(SELECT * FROM table1) res = c.fetchall ()

Re: Python MySQL problem with input to table..!

2007-06-29 Thread hiroc13
Thanks It is working! -- http://mail.python.org/mailman/listinfo/python-list