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
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
material view and view disadvantages?
How do you bind variables in oracle?
In not less than 100 words what's the main difference between Rolap and Molap in ORACLE ?
How to pass parameters to procedures in oracle?
How to enter a new row into a table interactively?
What is a read only transaction in oracle?
What is the difference between I and G in Oracle?
Explain do view contain data?
How do you find out from the RMAN catalog if a particular archive log has been backed-up?
How do I limit the number of oracle database connections generated by weblogic server?
How view is different from a table?
How to check the server version in oracle?
What is Undo Management Advisor in Oracle?
How to create a new table in oracle?