摘要: -- 创建触发器 CREATE TRIGGER myTrigBEFORE INSERT ON testFOR EACH ROWinsert into test_log(date,log) values(now(),'add one'); -- 触发触发器 insert into test(name, 阅读全文
posted @ 2019-11-22 15:23 leon-chan 阅读(144) 评论(0) 推荐(0) 编辑
摘要: --创建存储过程 delimiter // --重定义结束符create procedure myProc()beginselect * from test;end;// delimiter ; --恢复结束符定义 --调用存储过程 call myProc(); --删除存储过程 drop proc 阅读全文
posted @ 2019-11-22 14:54 leon-chan 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 定时器:在规定的时间自动运行 show variables like '%event_sche%'; 需要运行下面语句: set global event_scheduler=1; 开启定时事件 *******需要注意的点是:假如设置的mysql数据库在某个时间点关闭/重启了,定时事件就会是关闭状态 阅读全文
posted @ 2019-11-21 16:40 leon-chan 阅读(533) 评论(0) 推荐(0) 编辑
摘要: #基于163代理的发送邮件(基于运行机器没有smtp服务)import smtplibimport sysfrom email.mime.text import MIMETextfrom email.header import Headermail_host = "smtp.163.com" # S 阅读全文
posted @ 2019-11-07 13:35 leon-chan 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1、sql server网络配置 mssqlserver的协议 tcp/ip 启用 属性中的ip栏 中的可用IP启用状态为"是" 阅读全文
posted @ 2019-10-15 14:24 leon-chan 阅读(2452) 评论(0) 推荐(0) 编辑
摘要: crontab 1、crontab -e */1 * * * * 需要运行的任务 2、crontab -l 查看 3、 ps aux | grep cron or pgrep cron 查看cron是否运行 4、crontab -r 阅读全文
posted @ 2019-09-24 11:32 leon-chan 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 设计模式主要分为三大类,各自还有许多子类: 创建型模式 结构性模式 行为型模式 阅读全文
posted @ 2019-09-23 15:33 leon-chan 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1.apt-get update 2.apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk #安装依赖 阅读全文
posted @ 2019-09-20 15:23 leon-chan 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 知识点来源网络 1.MyQR文件结构 2.生成二维码的步骤 2.1 数据分析MyQR/mylibs/constan.py 确定编码的字符类型,按相应的字符集转换成符号字符。 2.2 数据编码MyQR/mylibs/data.py 将数据字符转换为位流,每8位一个码字,整体构成一个数据的码字序列。 2 阅读全文
posted @ 2019-09-19 09:09 leon-chan 阅读(436) 评论(0) 推荐(0) 编辑
摘要: var fileName = '下载的文件名';var label = [{'labelName1':'excle头1'},{'labelName2':'excle头2'},{'labelName3':'excle头3'},{'labelName4':'excle头4'}];var data = [ 阅读全文
posted @ 2019-09-10 10:44 leon-chan 阅读(371) 评论(0) 推荐(0) 编辑