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)
天使之翼死神之镰
相关分类