UpdtFct_Main.py 627 B

12345678910111213141516171819202122232425262728
  1. import pandas as pd
  2. import pymysql
  3. from sqlalchemy import create_engine
  4. import datetime
  5. from UpdtFct import *
  6. conn_qx = pymysql.connect(
  7. host='rm-bp10j10qy42bzy0q77o.mysql.rds.aliyuncs.com',
  8. user='qx_cas',
  9. password='Qx@123456',#Qx@123456
  10. database='qx_cas',
  11. charset='utf8'
  12. )
  13. conn_local = pymysql.connect(
  14. host='localhost',
  15. user='root',
  16. password='pengmin',
  17. database='qixiangdb',
  18. charset='utf8'
  19. )
  20. #指定开始时间,结束时间,更新所有sn的factor
  21. start_date="2021-07-18"
  22. end_date="2021-08-01"
  23. updtAllSnFct(start_date,end_date)