I have a database (Postgres 7.4) field for address
Example Data
address | zip
-----------------------+-------------+
123 main street | 12345
-----------------------+-------------+
3 where road | 12345
-----------------------+-------------+
South 3 where road | 12345
The queries
SELECT *
FROM tbl
WHERE zip = 12345
AND address ILIKE '3%'
I get all but I don't want 123 main street
SELECT *
FROM tbl
WHERE zip = 12345
AND address ILIKE '123%'
I get the results I want
My question is how do I just match the numeric part of the address?