| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Scott Holmes <sholmes(at)pacificnet(dot)net> |
| Cc: | PG-General <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Syntax for wildcard selection |
| Date: | 2001-08-15 23:54:30 |
| Message-ID: | 200108152354.f7FNsUa16737@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
> This question just came up from a user use to our Informix application. They
> tried to do a wildcard search, thus "where field_name LIKE 'AB%VN'". The
> trailing values (after the %) are not recognized correctly. With Informix
> 4GL, we wrote "where field_name MATCHES 'AB*VN'". This finds any combination
> of values with 'AB' as the first two characters, and 'VN' as the last two,
> with any number of characters in between - including blanks. How is this
> accomplished with PostgreSQL? Are we limited to wildcard searches as "where
> field_name LIKE 'AB%'"?
Trailing stuff should always be recognized, and I am sure PostgreSQL
does this.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Holmes | 2001-08-16 00:11:28 | Re: Syntax for wildcard selection |
| Previous Message | Martijn van Oosterhout | 2001-08-15 23:45:31 | Re: Syntax for wildcard selection |