视图过滤

This commit is contained in:
wuaho 2021-08-18 15:42:44 +08:00
parent ba3b1b0370
commit 69060898d7

View File

@ -33,9 +33,9 @@ res1 = client.execute(sql)
sql = f"""create view {db}.event_view as
select *
from {db}.event
where lower(`#os`) != 'windows'
where (`#os`is null or lower(`#os`) != 'windows')
and svrindex in {serverid}
and (orderid is null or not startsWith(orderid,'debugPay'))
and not startsWith(`orderid`,'debugPay')
"""
res2 = client.execute(sql)
with open(svrid_file, 'w') as f: