Код:
Код: Выделить всё
import pymysql
db=
pymysql.connect(host='localhost',port=3306,user='root',passwd='')
c = db.cursor()
c.execute("show databases;")
c.execute("use tracer;") #my database name
c.execute("select * from stud;")
Код: Выделить всё
c.execute("show databases;")Код: Выделить всё
c.execute("select * from stud;")Код: Выделить всё
3Подробнее здесь: https://stackoverflow.com/questions/539 ... integer-as
Мобильная версия