首页 > 数据库技术 > 详细

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

时间:2020-04-11 01:08:52      阅读:227      评论:0      收藏:0      [点我收藏+]

这两种方式都是可以的:

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!