db = pymysql.connect(host="localhost", port=3306, user="root", passwd="xxx", db="stu_info")
cursor = db.cursor(cursor=pymysql.cursors.DictCursor)
cursor.execute("SELECT account,psw FROM account Where ")
data = cursor.fetchall()
db.close()
pymysql使用模板
标签:where port sql host HERE sel mysq info nec
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did117029