Input Parameter

How do we pass default value as input parameter in a store procedure?

Questions by papillon   answers by papillon

Showing Answers 1 - 9 of 9 Answers

metal

  • Jan 31st, 2010
 

CREATE or REPLACE PROCEDURE proc_test
(name IN varchar2 DEFAULT 'Me' )
AS
BEGIN
dbms_output.put_line('My name is proc_test ' || name);
END;

SQL> exec proc_test('hello');
My name is proc_test hello

SQL> exec proc_test();
My name is proc_test Me

Priyanka Roy

  • Dec 6th, 2017
 

DECLARE
@Parameter1 varchar(max)=PRIYANKA

Code
  1. DECLARE

  2. @Parameter1 varchar(max)=PRIYANKA

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions