We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0436f4e commit 3f526f0Copy full SHA for 3f526f0
studynotes/Python连接数据库操作.md
@@ -1,5 +1,5 @@
1
# Python连接数据库操作
2
-## 连接mysql
+## 一、连接mysql
3
### 方式一
4
5
# 创建数据库连接
@@ -64,7 +64,7 @@
64
print(data)
65
conn.close()
66
67
-## 连接oracal
+## 二、连接oracal
68
* 1、下载安装cx_Oracle https://pypi.org/project/cx-Oracle/#files
69
* 2、下载instantclient,配置环境变量。 https://www.oracle.com/technetwork/cn/topics/winx64soft-101515-zhs.html
70
* 3、 把instantclient文件夹下所有的ddl文件复制到anaconda文件夹下。(复制oci,oraocci11,oraociei11的3个DLL粘贴到你的PY目录的Libs/site-packages文件夹下面)
@@ -88,7 +88,7 @@
88
scan_result = res.fetchall()
89
90
91
-## 连接sqlite
+## 三、连接sqlite
92
sqlite数据库可以当做缓存来用,如果不想用redis的话,可以考虑用sqlite
93
94
import sqlite3
0 commit comments