case when d.城市 like '%集团%' then '1'
case d.城市 like '%物业公司%' then '2'
case d.城市 like '%恒大%' then '3' else '0'
end as 'A',这段的效果在hana你怎么实现,此写法适合三大数据库,hana不行,如何转变
不是case when... when.. 吗?你这是什么数据库的写法
when d.城市 like '%物业公司%' then '2'
when d.城市 like '%恒大%' then '3'
else '0' end as 'A'
hana的case when 跟oracle基本一致,你这是写错了
when d.城市 like '%恒大%' then '3' else '0'
end as 'A',
are you kidding me?
case when d.城市 like '%集团%' then '1' when d.城市 like '%物业公司%' then '2' when d.城市 like '%恒大%' then '3' else '0' end as 'A'