From: | "Dinesh Pandey" <dpandey(at)secf(dot)com> |
---|---|
To: | <jspring(at)gmail(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: ignore single character in SELECT query? |
Date: | 2005-04-13 04:58:44 |
Message-ID: | 20050413050207.35CB753415@svr1.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Use
--------
select replace(quote_literal('don\'t'), '\'', '');
Or
select replace(quote_ident(myColumnName, '\'', '');
Thanks
Dinesh Pandey
-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of jspring(at)gmail(dot)com
Sent: Wednesday, April 13, 2005 8:16 AM
To: pgsql-sql(at)postgresql(dot)org
Subject: [SQL] ignore single character in SELECT query?
Given select criteria "dont" I would like to return rows with values
"don't". Or similarily I want rows with "they're" given input criteria
"theyre".
So basically I want to ignore a single character (the apostrophe
character), anywhere in the middle of my search word, in selecting
results. How can I do this?
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly
From | Date | Subject | |
---|---|---|---|
Next Message | Dinesh Pandey | 2005-04-13 05:02:39 | Re: max question |
Previous Message | Greg Stark | 2005-04-13 04:56:08 | Re: ignore single character in SELECT query? |