for i in range (0,100): sql = "SELECT user_id,total,money,use_money,FROM_UNIXTIME(addtime) FROM xx_account_%s GROUP BY user_id HAVING MAX(addtime) < UNIX_TIMESTAMP('20170629');"%i#执行SQL number = cursor.execute(sql) sleep(3) row_all = cursor.fetchall()# print(row_all)# list_row = list(row_all) print(row_all)
添加回答
举报
0/150
提交
取消