Re: Hi there, new here and have question - Mailing list pgsql-general

From Asche
Subject Re: Hi there, new here and have question
Date
Msg-id 91D5F89E-5173-487B-B797-67533E9B9361@mac.com
Whole thread Raw
In response to Hi there, new here and have question  ("Hendra" <manusiatidakbiasa@gmail.com>)
List 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

pgsql-general by date:

Previous
From: Asche
Date:
Subject: Re: Hi there, new here and have question
Next
From: Tom Lane
Date:
Subject: Re: PG_MODULE_MAGIC lost if strip the object file