1
在image
数据类型上执行聚合函数的最佳方式是什么?带图像数据类型的聚合函数
例如,在binImage是image
数据类型,我想回到要么binImage或空:
max(case when somechar = 'A' and anotherchar = 'B' then binImage else null end) as result
...是行不通的,因为max
不支持图像数据类型。
我知道image
已折旧。
您是否使用'MAX'来任意取得单个结果? – Nicarus
@尼卡罗斯,不完全是“任意”。 “count”不会返回图像,也不会返回“sum”或“min”等。但是,是的,我试图得到一个结果 - 因此需要某种聚合函数。 –