Python3 链接各种数据库(Mysql、Mssql、Oracle)

1、Mysql 1. 安装 PyMysql 库 pip3 install pymysql 2. 链接数据库的几种方法 connect()方法用于链接数据库 第一种:将各种字段写上python db = pymysql.connect(host="localhost", port=3306, user="root", passwd="root", db="Geek_Web", charset="ut
相关文章
相关标签/搜索