[python] (no subject)

xxxyyyxxx xyz007 na centrum.cz
Pondělí Duben 2 13:42:26 CEST 2007


Promin, ma tam byt toto :

# -*- coding: utf-8 -*-

import _mysql, _mysql_exceptions

db_conn = _mysql.connect(host="localhost", user="lama", passwd="123", db="lamadb")
db_conn.query("SELECT name FROM users")
mysql_result = db_conn.store_result().fetch_row(maxrows=0)
db_conn.close()
print mysql_result

obsah_db = ('obsah_db.txt', 'w')
obsah_db.write(mysql_result)
obsah_db.close()



Další informace o konferenci Python