Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE OR REPLACE FUNCTION squareOf(input IN NUMBER) RETURN NUMBER IS
- BEGIN
- RETURN(input*input);
- END;
- /
- DECLARE
- x NUMBER(8,2) := &x;
- BEGIN
- DBMS_OUTPUT.put_line('The square of the number is ' || squareOf(x) || '.');
- END;
- /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement