Re: [ADMIN] select exact term

2013-03-28 Thread Sergey Konoplev
On Thu, Mar 28, 2013 at 10:51 AM, Marc Fromm wrote: > Is there a way to create a select statement that will select a record if the > exact term is found in a field that contains the text to describe something? In addition to what has been suggested before you may find interesting full text search

Re: [ADMIN] select exact term

2013-03-28 Thread Marc Fromm
Thanks Tom, I just discovered that. I reworked the php so the quotes surround the regexp. -Original Message- From: Tom Lane [mailto:t...@sss.pgh.pa.us] Sent: Thursday, March 28, 2013 1:07 PM To: Marc Fromm Cc: Craig James; pgsql-admin@postgresql.org Subject: Re: [ADMIN] select exact

Re: [ADMIN] select exact term

2013-03-28 Thread Tom Lane
Marc Fromm writes: > I am struggling with the syntax. In php I create my where clause as shown, > using ~* for case insensitive: > $search = "art"; > $strSQL2 = "WHERE (title ~* [[:<:]]'$search'[[:>:]] OR description ~* > [[:<:]]'$search'[[:>:]]) "; > When executed zero records are returned eve

Re: [ADMIN] select exact term

2013-03-28 Thread Marc Fromm
ja...@emolecules.com] Sent: Thursday, March 28, 2013 11:05 AM To: Marc Fromm Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] select exact term On Thu, Mar 28, 2013 at 10:51 AM, Marc Fromm mailto:marc.fr...@wwu.edu>> wrote: Is there a way to create a select statement that will select a

Re: [ADMIN] select exact term

2013-03-28 Thread Craig James
On Thu, Mar 28, 2013 at 10:51 AM, Marc Fromm wrote: > Is there a way to create a select statement that will select a record if > the exact term is found in a field that contains the text to describe > something? > > ** ** > > If I create a select statement using WHERE description LIKE ‘art’

Re: [ADMIN] select exact term

2013-03-28 Thread Douglas J Hunley
On Thu, Mar 28, 2013 at 1:51 PM, Marc Fromm wrote: > Is there a way to create a select statement that will select a record if > the exact term is found in a field that contains the text to describe > something? > > ** ** > > If I create a select statement using WHERE description LIKE ‘art’ I

[ADMIN] select exact term

2013-03-28 Thread Marc Fromm
Is there a way to create a select statement that will select a record if the exact term is found in a field that contains the text to describe something? If I create a select statement using WHERE description LIKE 'art' I get every record that has words like depart, start and so on. If I create