摘要: show processlist 判断是否在等待锁 阅读全文
posted @ 2021-10-26 10:22 这世界我来过 阅读(19) 评论(0) 推荐(0)
摘要: # 获取查询的数据写入excel文件中,返回下载的路径 def download_PN_list(self, model, pn, pn_type): try: pn_data = self.PN_list(model, pn, pn_type) df = pd.DataFrame(pn_data) 阅读全文
posted @ 2021-10-15 10:38 这世界我来过 阅读(92) 评论(0) 推荐(0)
摘要: import calendar,datetimenow = datetime.datetime.now()year = now.yearmonth = now.monthweekday,monthRange = calendar.monthrange(year,month)# 获取当月第一天firs 阅读全文
posted @ 2021-09-25 11:37 这世界我来过 阅读(38) 评论(0) 推荐(0)
摘要: select * from table where name in (select name from table2) 等效于 select * from table where exists (select name from table2) 后者查询速度更快 clock_timestamp() 阅读全文
posted @ 2021-09-23 13:50 这世界我来过 阅读(310) 评论(0) 推荐(0)
摘要: cols = [c for c in df.columns if c[:7] != 'Unnamed'] df2 = df[cols] 阅读全文
posted @ 2021-09-20 09:23 这世界我来过 阅读(515) 评论(0) 推荐(0)