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

How do I upgrade sql?

553


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

666


What does pl sql stand for?

659


How can you select unique records from a table?

524


What is pl/sql table? Why it is used?

568






Can we create view in stored procedure?

526


What is sql lookup?

516


What are all the ddl commands?

635


Can we use delete in merge statement?

517


How to change sql*plus system settings?

544


Is sql a dbms?

536


what is a unique key ? : Sql dba

547


what is the stuff function and how does it differ from the replace function? : Sql dba

624


how many groups of data types? : Sql dba

569


What is the mutating table and constraining table?

563