Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f35ImB870623 for ; Thu, 5 Apr 2001 14:48:11 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 34506 for ; Thu, 05 Apr 2001 11:48:02 -0700 From: "Josh Berkus" Subject: Double-nesting quotes? To: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Thu, 05 Apr 2001 11:48:02 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200104/88 X-Sequence-Number: 2428 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@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco