import datetime
import pymysql
#连接sqlserver数据库获取数据
url='jdbc:sqlserver://10.134.13.1:1433;DatabaseName=optics'
driver='com.microsoft.sqlserver.jdbc.SQLServerDriver'
user='optics-etl'
password='optics-etl.aac'
table="(select top 1 convert(varchar(10),parsedate,120) as today_date,parse