描述再详细些,这两个表的字段是否以知,确定,如果能确定是哪连个字段可用如下SQLselect * from table1 where exists (select 1 from table2 where table1.columA like '%' || table2.columB || '%')如果不确定想要所有匹配,那就写存储过程吧
select * from table1 where exists(select * from table2 where table1.fieldA like '%' || table2.fieldb || '%' )