查询某张表的表头信息:
select column_name from information_schema.columns where table_Name = 'enginelog';
结合python的format函数:
"select count(*) from enginelog where test = 0 and srcEle != ''" + \
" and startingtime_date >= '{}' and startingtime_date <= '{}';".format(i,i)
分组查询:
"select reqtype,count(reqtype) from enginelog where test = 0 " + \
" and startingtime_date >='{}' and startingtime_date <='{}' group by reqtype;".format(i,i)