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

时间:2020-04-11 01:08:52   收藏:0   阅读:228

这两种方式都是可以的:

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

原文:https://www.cnblogs.com/dongyaotou/p/12677071.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!