write a procedure to print a statement or number not
using "dbms_output.put_line" package.write a procedure
instead of it using procdure name as "print"
ex:-
declare
a number:=2;
begin
print(a);
end;
/* when U type above procedure 2 have to should be printed*/
Answer Posted / amit kumar(patna)
We have to create procedure for print and called the SP for print any message
create or replace procedure print(n varchar)
as
begin
dbms_output.put_line(n) ;
end ;
set serveroutput on
declare
a number;
begin
a:=20;
print(a);
end;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are sql indexes?
What is a crud api?
What is multiple partition?
How to set up sql*plus output format in oracle?
how to create a new view in mysql? : Sql dba
What is the use of sql trace?
How do I run a pl sql program?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
What is the difference between unique and primary key constraints?
What is rtm stands for?
What is difference between ms sql and mysql?
what is the use of friend function? : Sql dba
What is flag in sql?
How do I run a sql query?
What does t sql mean?