I have a query:
Select *
from table
where
field1 LIKE '%12345%' (12345 being a column value : field2) *Works*
I want to use a column field value in the LIKE operator instead of hardcoding. Tried using concat:
where field1 LIKE concat(concat('%',field2), '%') *doesnt work*
Tried using regexp_like:
where regexp_like(field1, Cast(field2 as character)) *doesnt work*