摘要: 首先要通过pip install pymysql安装一个pymysql模块 直接上代码: import pymysql #连接数据库 conn = pymysql.connect(host='127.0.0.1',port=3306,user='root',passwd='root',db='tes 阅读全文
posted @ 2024-09-22 18:46 疯狂Python 阅读(57) 评论(0) 推荐(0)
摘要: 1.在编程中,数据库的内容非常重要。 2.**语句的执行顺序:** select from where group by having order by--是这个顺序吗?不是。 MySQL执行语句的顺序是:from where select group by having order by 3.or 阅读全文
posted @ 2024-09-22 16:44 疯狂Python 阅读(13) 评论(0) 推荐(0)