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


Please Help Members By Posting Answers For Below Questions

Why cross join is used?

637


What does where 1 1 mean in sql?

547


How do I add a database to sql?

582


What is the advantage of index in sql?

541


What is the usage of sql functions?

545






What are different types of indexes?

509


what is the difference between char and varchar data types? : Sql dba

539


Write the alter statement to enable all the triggers on the t.students table.

674


Can we alter stored procedure?

545


What is difference between sql and excel?

515


How is sql used in oracle?

583


How can I delete duplicate rows?

564


what is try_catch block in procedure

1192


Which is better cte or subquery?

542


What are sql commands?

505