Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id EB0469FBC3B for ; Tue, 15 May 2007 04:15:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 93871-04 for ; Tue, 15 May 2007 04:14:56 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by postgresql.org (Postfix) with ESMTP id 14BE39FB835 for ; Tue, 15 May 2007 04:14:57 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id d17so484033and for ; Tue, 15 May 2007 00:14:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eb6GSAdzzdE1OZFFyG+RIrpQSCmKetdyTtGfD+s8KR1o+CNgRUDwa53mVFQuORD3t6fVMgwmeGsDrT1gPYcVjZjunk0l9S0BiV6wMwIr2bR+eeFD/v+iZKpV3W6eNabpa3Do2DW4XunV7ip7PKWyHFrMGpOewdW9MabdSe31o+Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YYbYDf6uvtK1o4YeVLzzQwZKXuB9JGuVsYp7j3UA5jL5ULUhKzdN0PnfStTw5oYyDYJRywNjvHXto2j8+Xzt1xsKt/CsovSjZ2MwC2uDRtJvtvvbywDj33CunBewtvkXzQ/5XRmjfRwcd1eD2Ibtluma9lTIEL27Gs8zGHZy4Vc= Received: by 10.100.190.8 with SMTP id n8mr5148707anf.1179213297089; Tue, 15 May 2007 00:14:57 -0700 (PDT) Received: by 10.100.154.9 with HTTP; Tue, 15 May 2007 00:14:57 -0700 (PDT) Message-ID: Date: Tue, 15 May 2007 02:14:57 -0500 From: "=?ISO-8859-1?Q?Rodrigo_De_Le=F3n?=" To: pgsql-sql@postgresql.org Subject: Re: How to process inverted comma in "EXECUTE 'insert into xxx values(...) Cc: "Nemo Terry" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/120 X-Sequence-Number: 28400 On 5/15/07, Nemo Terry wrote: > But I must use it in function,so... > Do you have another solution? So? ---------------------------------------- t=# CREATE TABLE d(i INT); CREATE TABLE t=# CREATE OR REPLACE FUNCTION add1(x INT) RETURNS INT AS t-# $$ t$# BEGIN t$# INSERT INTO d VALUES(x); t$# RETURN x; t$# END; t$# $$ LANGUAGE plpgsql; CREATE FUNCTION t=# SELECT add1(1); 1 t=# SELECT add1(2); 2 t=# SELECT add1(3); 3 t=# SELECT * FROM d; 1 2 3 ---------------------------------------- Do you need something else?