Double-nesting quotes?

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Double-nesting quotes?
Date: 2001-04-05 18:48:02
Message-ID: web-34506@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Folks,

I'm writing some functions that make serious use of the EXECUTE
functionality. However, I need to do some string comparisons inside the
execute statements ... how do I double-nest the single quote marks?

EXAMPLE:
where_string := ''WHERE client_name ~* '''' || s_client || '''';

-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2001-04-05 19:40:17 Re: please help
Previous Message Joel Burton 2001-04-05 16:24:24 Re: Project Development