python连接数据库

db = pymysql.connect("host", "username", "*pass*","dbname", port)
cursor = db.cursor()
sql = "select id from arg_transaction where did=0 and bid>100000000000000"
cursor.execute(sql)

posted @ 2020-11-04 20:36  StivenYang  阅读(65)  评论(0编辑  收藏  举报