提交 c12087c7 作者: XveLingKun

经营分析sql查询修改

上级 5866a8dc
......@@ -276,7 +276,7 @@ def FinanceFromEase_task():
def JingyingfenxiFromEase():
cnx_, cursor_ = cnn11()
# 从上市企业库中读取数据
sql_sel = '''select social_credit_code from sys_base_enterprise_ipo where exchange = '1' or exchange = '2' or exchange = '3' and listed = '1' '''
sql_sel = '''select social_credit_code from sys_base_enterprise_ipo where (exchange = '1' or exchange = '2' or exchange = '3') and listed = '1' '''
cursor_.execute(sql_sel)
finance = cursor_.fetchall()
cnx_.commit()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论