上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: select resolvedDate from zt_bug WHERE product = '189' and date_format(resolvedDate,'%Y-%m-%d')=date_format(DATE_SUB(CURDATE(), INTERVAL 1 DAY),'%Y-%m- 阅读全文
posted @ 2021-07-01 17:28 小蕊-zr 阅读(48) 评论(0) 推荐(0) 编辑
摘要: import pymysql,xlwt,os sql1='''SELECT type, count( * ) AS 激活数量, sum( IF ( severity = 1, 1, 0 ) ) AS 1级数量, sum( IF ( severity = 2, 1, 0 ) ) AS 2级数量, su 阅读全文
posted @ 2021-07-01 16:31 小蕊-zr 阅读(67) 评论(0) 推荐(0) 编辑
摘要: import pymysql,xlwtdef export_excel(table_name): host,user,passwd,db='192.168.1.10','root','zentao_123','zentao' coon=pymysql.connect(host=host,user=u 阅读全文
posted @ 2021-07-01 15:13 小蕊-zr 阅读(54) 评论(0) 推荐(0) 编辑
摘要: import pymysql,xlwt def export_excel(table_name): host,user,passwd,db='192.168.1.152','root','myjcyf','us_sys' coon=pymysql.connect(host=host,user=use 阅读全文
posted @ 2021-07-01 14:55 小蕊-zr 阅读(39) 评论(0) 推荐(0) 编辑
摘要: select count(*) from zt_bug WHERE date_format(openedDate,'%Y-%m-%d')=date_format(NOW(),'%Y-%m-%d') 阅读全文
posted @ 2021-07-01 14:26 小蕊-zr 阅读(245) 评论(0) 推荐(0) 编辑
摘要: SELECT type, count( * ) AS 激活数量, sum( IF ( severity = 1, 1, 0 ) ) AS 1级数量, sum( IF ( severity = 2, 1, 0 ) ) AS 2级数量, sum( IF ( severity = 3, 1, 0 ) ) 阅读全文
posted @ 2021-07-01 13:47 小蕊-zr 阅读(52) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/HibonLi/article/details/72897486 SELECT count( * ) as 激活数量,GROUP_CONCAT(a.type separator ';') ,d.severity='1' as 1级BUG,d.severit 阅读全文
posted @ 2021-07-01 11:58 小蕊-zr 阅读(60) 评论(0) 推荐(0) 编辑
摘要: #第一步:调用pandas包 import pandas as pd #第二步:读取数据 iris = pd.read_excel(r'D:\pylx\20210622\12.xls')#读入数据文件 class_list = list(iris['所属部门'].drop_duplicates()) 阅读全文
posted @ 2021-06-28 12:02 小蕊-zr 阅读(335) 评论(0) 推荐(0) 编辑
摘要: break用法:循环的时候,循环一次即停止 import pymysql,xlwt FI = pymysql.connect( host='*',user='root',passwd='*', port=*,db='z*',charset='utf8' #port必须写int类型, #charset 阅读全文
posted @ 2021-06-25 17:21 小蕊-zr 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 在python里,1个=号是赋值,==号是IF后面的等于 阅读全文
posted @ 2021-06-25 15:07 小蕊-zr 阅读(309) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页