Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: ignore single character in SELECT query? - Mailing list pgsql-sql

From Dinesh Pandey
Subject Re: ignore single character in SELECT query?
Date
Msg-id [email protected]
Whole thread Raw
In response to ignore single character in SELECT query?  ([email protected])
List pgsql-sql
Use
--------
select replace(quote_literal('don\'t'), '\'', '');
Or
select replace(quote_ident(myColumnName, '\'', '');

Thanks
Dinesh Pandey


-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of [email protected]
Sent: Wednesday, April 13, 2005 8:16 AM
To: [email protected]
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
[email protected] that your     message can get through to the mailing list cleanly
 




pgsql-sql by date:

Previous
From: Greg Stark
Date:
Subject: Re: ignore single character in SELECT query?
Next
From: "Dinesh Pandey"
Date:
Subject: Re: max question