下面的查询我用来获取数据。它正在提供数据。但我想使用DxCto sercah 所以它应该提供所有与 dxc 相关的数据。
当前查询:
select count(*)
from enterprise_1.contacts_master
where contact_data::json->>'Company' SIMILAR TO ('%(DXC|dxc)%')
o/p: 2
预期查询
select count(*)
from enterprise_1.contacts_master
where contact_data::json->>'Company' SIMILAR TO ('%(DxC)%')
当前 o/p: 0
预期 o/p: 2
我不想用ILike