oracle :
select * from table_name where second_name like '%'||:secondName||'%'
mysql:
select * from table_name where second_name like concat('%', :second_name ,'%')