Received: from bugs.unl.edu.ar (bugs.unl.edu.ar [168.96.132.208]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAUDjYm86036 for ; Fri, 30 Nov 2001 08:45:35 -0500 (EST) (envelope-from martin@bugs.unl.edu.ar) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id 902DAFB8D for ; Fri, 30 Nov 2001 10:43:45 -0300 (GMT) Received: by bugs.unl.edu.ar (Postfix, from userid 1004) id BED7EFA61; Fri, 30 Nov 2001 10:43:44 -0300 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: =?iso-8859-1?q?Mart=EDn=20Marqu=E9s?= To: pgsql-sql@postgresql.org Subject: variables in procedures Date: Fri, 30 Nov 2001 10:43:43 -0300 X-Mailer: KMail [version 1.3] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20011130134344.BED7EFA61@bugs.unl.edu.ar> X-Virus-Scanned: by AMaViS snapshot-20011031 X-Archive-Number: 200111/436 X-Sequence-Number: 5817 How can I distinguish between the name and the value of a variable? Example: CREATE FUNCTION test(VARCHAR) RETURNS INTEGER AS ' DECLARE col1 ALIAS FOR $1 BEGIN select col1 from tab where col1=´´col1´´; END; ´ LANGUAGE 'plpgsql'; Is my doubt understood? -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral -----------------------------------------------------------------