select sum(case when '%sys%' like any(series_arr)
or 'displays' = any(lob_arr)
then revenue else 0 end) as sys_displ_revenue
from mytable
基本上,当我运行这个查询时,术语'%sys%' like any(<array column>
)似乎被忽略了,只有'显示'收入被使用.
如何解决这一问题?