Commit 9c42c61b by fangxingjun

no message

parent 4db15b90
...@@ -61,14 +61,14 @@ if __name__ == '__main__': ...@@ -61,14 +61,14 @@ if __name__ == '__main__':
if date_type == 'us': if date_type == 'us':
sql = f""" sql = f"""
create table if not exists {export_tb} ( create table if not exists {export_tb} (
like {export_master_tb} including comments like {export_master_tb} including defaults including comments
); );
delete from {export_tb} where report_date >= '{start_day}' and report_date <= '{end_day}' delete from {export_tb} where report_date >= '{start_day}' and report_date <= '{end_day}'
""" """
else: else:
sql = f""" sql = f"""
create table if not exists {export_tb} ( create table if not exists {export_tb} (
like {export_master_tb} including comments like {export_master_tb} including defaults including comments
); );
delete from {export_tb} where report_date > '{start_day}' and report_date <= '{end_day}' delete from {export_tb} where report_date > '{start_day}' and report_date <= '{end_day}'
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment