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

Is pl sql and postgresql same?

574


What is database sql?

544


What is snowflake sql?

582


what are the advantages of mysql in comparison to oracle? : Sql dba

530


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

550






Is sql better than access?

546


what are the performance and scalability characteristics of mysql? : Sql dba

533


what is the command used to fetch first 5 characters of the string? : Sql dba

1137


How can we store rows in PL/SQL using array?

668


What normalization means?

527


What is the difference between truncate and drop statements?

581


Why is a trigger used?

531


what is a relationship and what are they? : Sql dba

552


Which constraints we can use while creating database in sql?

619


What is difference between pls_integer and integer?

521