sql_select="SELECT * FROM Tfbs where col3 is not null and length(col3)>3 and col6 is not null and state1=1 and col3 like 'ZZSN%' order by date1 ,id LIMIT 1"
a()
curosr.execute(sql_select)
print('b....start')
data=curosr.fetchone()
b()
id=data[0]
\ No newline at end of file
# 更新以获取企业的采集状态
# sql_update = f"UPDATE Tfbs set state1 = 2 WHERE id = {id}"