InterviewSolution
Saved Bookmarks
| 1. |
Why do we use RPAD function in PL/SQL? |
|
Answer» A subprogram in PL/SQl is a standalone subprogram at the schema level. The CREATE PROCEDURE or the CREATE FUNCTION statement is used in PL/SQL to create a standalone procedure.
The FOLLOWING is the syntax to create a procedure: CREATE [OR REPLACE] PROCEDURE name_of_procedure [(parameter_name [IN | OUT | IN OUT] TYPE [, ...])] {AS} BEGIN < procedure_body > END name_of_procedure;Here,
Here is an example of a procedure: CREATE OR REPLACE PROCEDURE one AS BEGIN dbms_output.put_line('Chalk and Duster!!'); END; /The output displays the procedure created successfully:
The above call will give the following output: Chalk and Duster! |
|