| Python 2.2 für Einsteiger | ||
|---|---|---|
| <<< Previous | Einführung anhand von Beispielen | Next >>> |
#!/usr/bin/python2.1
import MySQLdb
db = MySQLdb.connect(user="test", passwd="test", db="typefocus",
host="www.typefocus.de")
#db = MySQLdb.connect(db="test")
cursor = db.cursor()
cursor.execute('show databases')
#cursor.execute('select * from test')
results = cursor.fetchall()
print results
| <<< Previous | Home | Next >>> |
| Teilbarkeiten | Up | JOIN - Vermischen von Strings |