视图过滤
This commit is contained in:
parent
ba3b1b0370
commit
69060898d7
@ -33,9 +33,9 @@ res1 = client.execute(sql)
|
|||||||
sql = f"""create view {db}.event_view as
|
sql = f"""create view {db}.event_view as
|
||||||
select *
|
select *
|
||||||
from {db}.event
|
from {db}.event
|
||||||
where lower(`#os`) != 'windows'
|
where (`#os`is null or lower(`#os`) != 'windows')
|
||||||
and svrindex in {serverid}
|
and svrindex in {serverid}
|
||||||
and (orderid is null or not startsWith(orderid,'debugPay'))
|
and not startsWith(`orderid`,'debugPay')
|
||||||
"""
|
"""
|
||||||
res2 = client.execute(sql)
|
res2 = client.execute(sql)
|
||||||
with open(svrid_file, 'w') as f:
|
with open(svrid_file, 'w') as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user