08.01.2015 Views

phsjhxx

phsjhxx

phsjhxx

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example Code for PLSQLDoc<br />

CREATE OR REPLACE FUNCTION get_SalProzent (in_empno IN NUMBER)<br />

RETURN NUMBER<br />

IS<br />

/**<br />

General Information about function to show HTMLformatting<br />

<br />

To show the cross-reference the name of the procedure D1D_faktor is<br />

noticed here. <br />

The tag ‘link’ can appear within another text like this is shown here:<br />

The employees are listed in the table {%link emp.html EMP}.<br />

And the {%link http://www.trivadis.com Trivadis}-Company has a<br />

website.<br />

%param in_empno Number of employee<br />

%return part in percent<br />

%value 100 return value is 100%<br />

%value 0 return value is 0%.<br />

%value 25 return value is 25%.<br />

%raises NO_DATA_FOUND If no salary is found, no part of salary<br />

can be issued.<br />

%author Scott Tiger<br />

%version 1.2.3<br />

%usage description of the function<br />

%see sal_info.get_sal;2<br />

%see http://www.trivadis.com<br />

*/<br />

l_sal NUMBER(7,2);<br />

l_summe NUMBER(7,2);<br />

BEGIN<br />

SELECT sal<br />

INTO l_sal<br />

FROM emp<br />

WHERE empno = in_empno;<br />

(…)<br />

END get_SalProzent;<br />

PL/SQL Coding Guidelines 15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!