这两种方式都是可以的:
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%';
这两种方式都是可以的:
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%';
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。