X-Original-To: pgsql-sql@postgresql.org Received: from s005.ch-beaune.fr (unknown [81.255.101.233]) by svr1.postgresql.org (Postfix) with ESMTP id AE8675E46FB for ; Tue, 24 Aug 2004 05:39:47 -0300 (ADT) Received: from s005.ch-beaune.fr (localhost [127.0.0.1]) by localhost.ch-beaune.fr (Postfix) with ESMTP id AD80767B5F for ; Tue, 24 Aug 2004 10:39:41 +0200 (CEST) Received: from ch-beaune.fr (unknown [172.16.1.32]) by s005.ch-beaune.fr (Postfix) with ESMTP id 7816E67B5C for ; Tue, 24 Aug 2004 10:39:41 +0200 (CEST) Received: from [172.17.70.5] [172.17.70.5] by ch-beaune.fr [172.16.1.41] with SMTP (MDaemon.PRO.v5.0.4.R) for ; Tue, 24 Aug 2004 10:39:27 +0200 Message-ID: <412AFEBC.4060404@free.fr> Date: Tue, 24 Aug 2004 10:39:24 +0200 From: Patrice OLIVER User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: stored procedures and type of returned result. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-MDRemoteIP: 172.17.70.5 X-Return-Path: oliverp21@free.fr X-MDaemon-Deliver-To: pgsql-sql@postgresql.org X-Archive-Number: 200408/250 X-Sequence-Number: 18747 *********************** Aucun virus n'a été détecté dans la pièce-jointe no filename --- No virus was detected in the attachment no filename Votre courrier a été inspecté par InterScan Messaging Security Suite --- Your mail has been scanned by InterScan MSS. *********************** Hello, I'm new in PostgreSQL. It's very cool. I would like to know how to return a set of records from a stored procedure. For example, i would like to execute these sql command from a stored procedure : select t.typnum, t.typcom, t.typcateg, s.symurlgraph from structure.type t left join structure.symbole s on t.typcode = s.typcode; Is it possible ? Do i have to return results in an array ? If yes, how could i do ? Do you think using plPHP mays help me ? Regards, Patrice OLIVER.