Fork me on GitHub
摘要: 下面的代码为了每天定时发送监控邮件,监控什么呢?监控当天redis队列中是否有没有消费的数据,和当天mysql中新增的数据量 # -*- coding:utf-8 -*- from common.redis import redisServ from common.mysql import database from email.mime.text import MIMEText from em... 阅读全文
posted @ 2019-03-27 18:22 猿起缘灭 阅读(774) 评论(0) 推荐(0) 编辑
摘要: select @rownum:=@rownum+1 AS rownum,b.* from (SELECT @rownum:=0) r ,goods_description_new b 阅读全文
posted @ 2019-03-27 14:03 猿起缘灭 阅读(134) 评论(0) 推荐(0) 编辑
摘要: import timetime.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) 阅读全文
posted @ 2019-03-27 10:41 猿起缘灭 阅读(209) 评论(0) 推荐(0) 编辑
摘要: select * from table where id in (select max(id) from table group by sku) 说明:id是自增序列,sku是表中的一个字段 阅读全文
posted @ 2019-03-27 10:24 猿起缘灭 阅读(16151) 评论(0) 推荐(0) 编辑