[ADMIN]substring check function - Mailing list pgsql-admin

From Jonathan H. Wheaton
Subject [ADMIN]substring check function
Date
Msg-id 13776.62188.190556.977513@app35-69.applink.net
Whole thread Raw
In response to [ADMIN]substring check function  ("ÀÌÀ±¿µ" <ahalf@sbsmail.net>)
List pgsql-admin
ÀÌÀ±¿µ writes:
 > hi all!
 > coding a database search program on web,
 > i want to have that pg to find tuples including
 > the string that a user inputs.
 > how can i do?
 > Does Postgres supply built-in function such like strstr()
 > in C ?
 > I'm wating you.
 > ------------------------------------------------------
 >                 Yoon-young Lee from Korea
 >                 ~~m..m~~

    You can use the SQL "like" operator and do something like:

select *
from table
where field like '%somestring%'

    The "%" == zero or more of any character.

Jonathan
--
Jonathan H. Wheaton
jwheaton@applink.net

pgsql-admin by date:

Previous
From: Bryan Brunton
Date:
Subject: RE: User Authentication Problem
Next
From: cheng wah yeung
Date:
Subject: How to install postgresql in different directory