I have a column in Postgres like:
name
abc def ghi
lmnop qrst uvw
xyz
Is there any way I get the match and the position of the match?
For example
If I search for 'ef' then I should get the first by using a query like:
select * from table where name like '%ef%';
and the position of the match should be 5. How can I find the position of the match?