| From: | "Jonathan H(dot) Wheaton" <jwheaton(at)applink(dot)net> |
|---|---|
| To: | "" <ahalf(at)sbsmail(dot)net> |
| Cc: | pgsql-admin(at)postgreSQL(dot)org |
| Subject: | [ADMIN]substring check function |
| Date: | 1998-08-12 01:45:38 |
| Message-ID: | 13776.62188.190556.977513@app35-69.applink.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)applink(dot)net
| From | Date | Subject | |
|---|---|---|---|
| Next Message | cheng wah yeung | 1998-08-12 01:49:58 | How to install postgresql in different directory |
| Previous Message | Bryan Brunton | 1998-08-11 21:02:49 | RE: User Authentication Problem |