Skip to content

# python 连接 MySql 简化连接程序。 执行SQL只需要两步 mysqlZhu = MysqlZhu(host='主机名',port = 3306,database="数据库", user='数据库用户名',password='数据库密码',charset='utf8') mysqlZhu.execute_sql("您的SQL语句")

Notifications You must be signed in to change notification settings

likexie/zhumysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mysqlZhu

python 连接 MySql 简化连接程序。

执行SQL只需要两步

1. 第一步mysqlZhu = MysqlZhu(host='主机名',port = 3306,database="数据库",user='数据库用户名',password='数据库密码',charset='utf8') 
2. 第二步# 如果是插入这返回插入后的下标,如果是查询,返回的是列表,如果是是修改直接修改即可
result = mysqlZhu.execute_sql("您的SQL语句")

About

# python 连接 MySql 简化连接程序。 执行SQL只需要两步 mysqlZhu = MysqlZhu(host='主机名',port = 3306,database="数据库", user='数据库用户名',password='数据库密码',charset='utf8') mysqlZhu.execute_sql("您的SQL语句")

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages