Re: Hi there, new here and have question

From: Asche <asche(dot)public(at)mac(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: Hendra <manusiatidakbiasa(at)gmail(dot)com>
Subject: Re: Hi there, new here and have question
Date: 2008-07-08 17:08:13
Message-ID: 91D5F89E-5173-487B-B797-67533E9B9361@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Any suggestion everyone?
>
Sorry, i was to fast sending this email out ;-)

change the first parameter in the first line to '_id_depth'

CREATE OR REPLACE FUNCTION listofemployeebasedondepartment(_id_dept
int)
RETURNS SETOF employee AS
$BODY$
BEGIN

RETURN QUERY
SELECT
*
FROM
employee
WHERE
id_dept = _id_dept;

RETURN;
END;
$BODY$
LANGUAGE 'plpgsql';

Jan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Josh Berkus 2008-07-08 17:13:13 Re: Sign up for PDXPUG PgDay! July 20, 2008
Previous Message Asche 2008-07-08 17:04:16 Re: Hi there, new here and have question