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 / chandra shekhar

As you said that DBMS_OUTPUT.PUT_LINE should not be used in given piece of your program, so it can be done by creating a procedure by name print as follows

create or replace procedure print(n number)
as
begin
dbms_output.put_line(n) ;
end ;

and then executing your piece of code i.e.

declare
a number:=2;
begin
print(a);
end;

Hope this is what u r question reflects ?

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is mariadb nosql?

765


Can a key be both primary and foreign?

718


How do you use collections in procedure to return the resultset?

1998


Explain spool.

901


What is the difference between an inner and outer join?

729






What are predefined functions in sql?

712


What will you get by the cursor attribute sql%found?

701


Can we use the cursor's to create the collection in PL/SQL?

695


Mention what does plv msg allows you to do?

853


what is single byte over head in oracle..?

2089


What is the difference between mdf and ndf files?

778


Can we have two clustered index on a table?

760


How to run sql statements through the web interface?

730


What is the difference between database trigger and stored procedure?

738


What is primary key secondary key alternate key candidate key?

759