Re: Syntax for wildcard selection - Mailing list pgsql-general

From Jason Turner
Subject Re: Syntax for wildcard selection
Date
Msg-id 20010816144215.A7551@camille.indigoindustrial.co.nz
Whole thread Raw
In response to Re: Syntax for wildcard selection  (John Clark Naldoza y Lopez <njclark@ntsp.nec.co.jp>)
List pgsql-general
Minor regex suggestion...

> Perhaps regular expression may help you out...
>
> WHERE field_name ~ '^AB' AND field_name ~ 'VN$'

That will still skip the records with trailing blanks.

WHERE field_name ~ '^AB.*VN[ \t\r\n]*$'

won't.

Jason
--
Indigo Industrial Controls Ltd.
64-21-343-545
jasont@indigoindustrial.co.nz

pgsql-general by date:

Previous
From: John Clark Naldoza y Lopez
Date:
Subject: Re: Syntax for wildcard selection
Next
From: Robert Berger
Date:
Subject: JDBC commit() not working?