select * from aaat where t.codename like '%天津%';
如果想多个模糊查询可以用or,如:
select * from aaa where t.codename like '%天津%' or t.codename like '%上海%' ;