Is there any shorter way to look for multiple matches:
SELECT *
from table
WHERE column LIKE "AAA%"
OR column LIKE "BBB%"
OR column LIKE "CCC%"
This questions applies to PostgreSQL 9.1, but if there is a generic solution it would be even better.
|
) or brackets in actual data? – RichardTheKiwi Oct 18 '12 at 16:07any (values('AAA%'), ('BBB%'), ('CCC%')
That one looks good. – RichardTheKiwi Oct 19 '12 at 12:30