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

how to run 'mysql' commands from a batch file? : Sql dba

776


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

758


What do you understand by pl/sql packages?

767


Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?

1945


how to convert numeric values to character strings? : Sql dba

778






What is pl sql block in dbms?

707


Can we join same table in sql?

736


What is sql resultset?

725


What is bind reference and how can it be created?

771


Why do we use procedures in sql?

766


How can you view the errors encountered in a trigger?

732


What is the basic structure of an sql?

753


Is join same as left join?

752


Why do we need pl sql?

721


Can we create foreign key without primary key?

705