摘要: 一、概述 1、什么是数据库 ? 答:数据的仓库,如:在ATM的示例中我们创建了一个 db 目录,称其为数据库 2、什么是 MySQL、Oracle、SQLite、Access、MS SQL Server等 ? 答:他们均是一个软件,都有两个主要的功能: a. 将数据保存到文件或内存 b. 接收特定的 阅读全文
posted @ 2019-06-12 17:17 compy 阅读(159) 评论(0) 推荐(0) 编辑
摘要: import pymysql # 创建连接 db = pymysql.connect(host='127.0.0.1',user='root',password='12345678',database='db1') # 创建游标 cursor = db.cursor() sql = 'create table innodb_t2(id int,name char(20))engine=in... 阅读全文
posted @ 2019-06-12 15:53 compy 阅读(230) 评论(0) 推荐(0) 编辑