![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
哈哈%憨憨=2
One Day
展开
-
简单的数据库操作
import pymysql # 连接数据库 conn = pymysql.connect(host='localhost', user='root', password='Helloguitar532123', charset='utf8') # 获得游标 cursor = conn.cursor() # 创建数据库 db_student = 'create database if not exists db_stu_info2' cursor.execute(db_student) # 创建数据表 sq原创 2020-06-18 17:43:18 · 97 阅读 · 0 评论 -
用Python对MySQL简单操作
import pymysql # 连接数据库 conn = pymysql.connect(host="localhost", user="root", password="Helloguitar532123",charset="utf8") # 获得浮标 cursor = conn.cursor() # 创建数据库 sql_create = "create database if not exists dbtest" cursor.execute(sql_create) # 创建数据表 sql_use =原创 2020-06-11 16:30:35 · 97 阅读 · 0 评论