我使用以下查询
select distinct throttle_id, array_accum(param) over (partition by throttle_id) as script_exclude from throttle_data where exclude = 't' and valve_type = 513 and throttle_id = 1270571881我在script_exclude字段中得到了空值
我在param列中的示例值是,
机票/定价/发射_0tc.wql机票/定价/发射_0xp.wql机票/定价/发射_0xp_down.wql.0xp机票/定价/发射_0xp_up.wql
No.of行是351。
请给我建议,我怎么能得到这些所有的价值。
你好,Sachin Jain
发布于 2016-03-28 11:24:02
相反,请尝试以下几点:
select throttle_id, array_agg(param) as script_exclude
from throttle_data where exclude = 't'
and valve_type = 513 and throttle_id = 1270571881
group by throttle_id;如果仍然返回null,则尝试:
select * from throttle_data
WHERE exclude = 't'
and valve_type = 513 and throttle_id = 1270571881;看看什么是聚合的。
如果不返回任何行,那么where子句中的条件就有问题。
https://stackoverflow.com/questions/36147213
复制相似问题