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
How do I uninstall oracle client from windows?
Why do I get unexpected characters from 8-bit character sets in weblogic jdriver for oracle?
State some uses of redo log files?
how do we code triggers , store procedure , Performance tuning and indexing in a Java Project? Pls kindly get me the perfect answer with the code for each....thank you in advance............pls any body kindly help me soon as possible....
What are the most common interview questions on ETL Testing for experience?
When do we use group by clause in a sql query?
How to convert character types to numeric types?
How many types of tables supported by oracle?
How oracle handles dead locks?
How do I use unicode codesets with the weblogic jdriver for oracle driver?
Difference between open_form and call_form in oracle.
What is meant by an index?
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 ?
Can you have more than one content canvas view attached with a window ?
What's dateware house and what's clustor with practicle example