Postgresql database-number type fuzzy query

Both methods are possible:

select * from aaa a where a.org_code || '' like '86% ';-recommend to use this, simple

select * from aaa  where  1=1 and cast(org_code as varchar(10)) like '%1%';

Guess you like

Origin www.cnblogs.com/dongyaotou/p/12677071.html