摘要: 参考:https://www.cnblogs.com/mark-chan/p/5384139.html 参考:https://www.runoob.com/w3cnote/mysql-stored-procedure.html 参考:https://blog.csdn.net/Servlet905/ 阅读全文
posted @ 2020-06-22 15:18 qsl_你猜 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 一、调用存储过程、设置事件 我是在Navicat中操作的。 1.1 新建事件 点击事件-新建事件。 1.2 书写代码 在定义中书写代码,关键是CALL字段。也可以不写begin....end SQL预览中有完整的代码,是根据定义自动生成的。 1.3 设置时间 1.4 保存 二、设置事件的缺点。 相比 阅读全文
posted @ 2020-06-22 15:16 qsl_你猜 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 封装pymysql, 代码展示: # encoding:utf-8 import pymysql.cursors class MysqlOperation(object): def __init__(self, config): self.connection = pymysql.connect(h 阅读全文
posted @ 2020-06-22 15:13 qsl_你猜 阅读(109) 评论(0) 推荐(0) 编辑