PL/SQL Function to Find Power of Numbers

PL/SQL Function to Find Power of Numbers:

create or replace function powr(x in number,y in number)
return number is pno number;
begin
select power(x,y) into pno from dual;
return(pno);
end;

Calling Function:

begin
dbms_output.put_line(powr(5,2));
end;

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.