![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
匿名用户9527
这个作者很懒,什么都没留下…
展开
-
MySQL常用命令
mysql常用命令 show databases; //会显示数据库服务器上的所有的数据库 create databases test; //创建数据库test drop database test; //删除test数据库 use test; //选择test数据库 show tables; //查看当前选中数据库中的数据表 create table ...原创 2018-10-17 21:12:33 · 118 阅读 · 0 评论 -
pymysql常用操作
插入操作 import pymysql # 打开数据库连接 db = pymysql.connect(host='localhost', user='root', password='123456', db='python', port=3306) # 使用cursor()方法获取操作游标 cursor = db.cursor() # 插入数据 # 编写sql查询语句 sql_inser...原创 2018-11-28 11:59:14 · 171 阅读 · 0 评论