当前位置:Gxlcms > 数据库问题 > postgresql数据库-number类型模糊查询

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

时间:2021-07-01 10:21:17 帮助过:30人阅读

这两种方式都是可以的:

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类型模糊查询

标签:两种   rom   sele   ||   方式   org   char   ike   post   

人气教程排行