blob: 8d373dc534e039a68ec1e001819e7f79e154519e (
plain)
1
2
3
4
5
6
7
8
9
10
|
import MySQLdb as m
conn = m.connect()
c = conn.cursor()
print dir(c)
print c.execute("use books;")
print c.execute("select * from books;")
print c.fetchone()
print c.fetchmany(3)
print c.fetchall()
|