MySQL
deakth_tiger
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
MySQL中一些简单的基本操作
一、数据库操作 1.查看数据库 查看MySQL中有什么数据库:show databases; 2.创建数据库 创建数据库: create database hello;(创建名称为hello的数据库) 3.使用数据库 假设要使用hello数据库:use hello; 4.删除数据库 假设要删除hello的数据库:drop database hello;可以从左边看到,名为hello的数据库已...原创 2018-12-19 14:45:40 · 307 阅读 · 2 评论 -
Python连接数据库查询和修改数据
1、连接数据库查询数据 #查询操作。 import pymysql mysql_connect = pymysql.connect(host='localhost', user='root', passwd='', db='niushop_b2c', port=3306, charset='utf8') #创建游标并读取数据库数据,逐行读取 mysql_cursor = mysql_connect...原创 2019-08-19 20:31:05 · 1625 阅读 · 1 评论
分享