Normally LIKE statement is used to check the pattern like data.
LIKE
example:
select * from table1 where name like \'ar%\'
ORACLE DATABASE example:
select * from table1 t1, table2 t2 WHERE t1.a like ('%' || t2.b || '%')