I wonder if there is a way to ignore a sequence of characters in PostgreSQL expression LIKE.
In my table I have some values, which start with varying number of zeros. I want to be able to find proper values, without putting those zeros in my LIKE expression.
There is an example:
id value
1 00045
2 00145
3 00003
Now, when I start looking for value 00045, I want to type just "45" and have only value connected with id=1 returned. LIKE '%45' is obviously not possible, as I don't want value 00145 picked.
Is there a simple way to do so?