这两种方式都是可以的:
select * from aaa a where a.org_code ||‘‘ like ‘86%‘;--推荐使用这种,简单,一看就是高手写出来的
select * from aaa where 1=1 and cast(org_code as varchar(10)) like ‘%1%‘;
postgresql数据库-number类型模糊查询
原文:https://www.cnblogs.com/dongyaotou/p/12677071.html