Re: Syntax for wildcard selection

From: Jason Turner <jasont(at)indigoindustrial(dot)co(dot)nz>
To: John Clark Naldoza y Lopez <njclark(at)ntsp(dot)nec(dot)co(dot)jp>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Syntax for wildcard selection
Date: 2001-08-16 02:42:15
Message-ID: 20010816144215.A7551@camille.indigoindustrial.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)indigoindustrial(dot)co(dot)nz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Killian May 2001-08-16 02:56:34 Missing Sequence File
Previous Message John Clark Naldoza y Lopez 2001-08-16 01:26:10 Re: Syntax for wildcard selection