Senin, 01 April 2013

Contoh Syntax PL/SQL Function Luas Segitiga

CREATE OR REPLACE FUNCTION LUAS_SEGITIGA 
(A IN NUMBER, T IN NUMBER)
RETURN VARCHAR AS
LUAS FLOAT(10);
BEGIN
LUAS := (A*T)/2;
RETURN 'LUAS = ' || LUAS;
END;

mengcompile 
: select LUAS_SEGITIGA (3,4) from dual;

0 komentar:

Posting Komentar

 

in4matica Generasi Biru Template by Ipietoon Cute Blog Design