Write a simple Store procedure and pass parameter to it ?
Answer Posted / nikhil patel
CREATE OR REPLACE PROCEDURE test_new1(p_vari1 IN NUMBER
. ,p_vari2 IN
VARCHAR2)
AS
v_vari1 table.rollno%type;
v_vari2 table.name%type;
BEGIN
v_vari1 := p_vari1;
v_vari2 := p_vari2;
INSERT INTO table (
rollno
,name
)
VALUES (
v_vari1
,v_vari2
);
END;
/
COMMIT;
-- CALL PROCEDURE IN OTHER PL-SQL BLOCK
BEGIN
test_new1(0127,'nikhil');
END;
/
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
6. Display the client name and order date for all orders using the traditional method.
How to use "if" statements on multiple conditions?
Explain temporal data types in oracle
What suggestions do you have to reduce the network traffic?
How to create a table in a specific tablespace?
How to assign data of the deleted row to variables?
How to apply filtering criteria at group level in oracle?
What is a system tablespace and when it is created?
What is the difference between view and materialized view in Oracle?
Typically, where is the conventional directory structure chosen for Oracle binaries to reside?
What is bulk load in oracle?
Can we call procedure inside function in oracle?
What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.
Explain the difference between a procedure and a function?
Is it possible to set second Primary Key Constraint in a table in Oracle Database ?