postgresql数据库-number类型模糊查询

这两种方式都是可以的:

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%';

posted @ 2020-04-10 23:35  ~码铃薯~  阅读(2284)  评论(0编辑  收藏  举报