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
What is oracle data type?
What happens if you use a wrong connect identifier?
How to define a variable of a specific record type?
What are the arithmetic operations?
What are the different types of synonyms?
How to insert a record into a table?
How to select an oracle system id (sid)?
How to define a specific record type?
List the various oracle database objects?
For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?
What are the different editions of oracle?
What are the database administrators utilities available?
Difference between open_form and call_form in oracle.
Hi this srilatha. I comlpeted my Oracle-hrms. can u provide me interview questions on Core hr, payroll,sshr,OLM etc..
What is a subquery in oracle?