Re: NOVICE - Wildcard query - Mailing list pgsql-novice

From Dave_Pfaltzgraff@patapsco.com
Subject Re: NOVICE - Wildcard query
Date
Msg-id 8525692E.00620782.00@patapsco.com
Whole thread Raw
In response to NOVICE - Wildcard query  (David Willey <dwilley@engr.psu.edu>)
List pgsql-novice



Dave Pfaltzgraff@PATAPSCO
08/01/2000 01:50 PM

David Willey <dwilley@engr.psu.edu> asks:

>How does one make a wildcard query? For example:
>SELECT * FROM contact_table WHERE fname="Dav*";

Here's where you need the LIKE operator:
SELECT * FROM contact_table WHERE fname LIKE "Dav%";

The underscore '_' matches any single charactetr, the percent sign '%' matches
any sequence of characters.



pgsql-novice by date:

Previous
From: Jacques Williams
Date:
Subject: Re: Presenting PGAccess Pages to the WWW.
Next
From: James Hall
Date:
Subject: copying pg_user?