Search Postgresql Archives

Re: Hi there, new here and have question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux