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
Explain the use of show option in imp command.
How to create a new table in your schema?
How a tablespace is related to data files?
Give the different types of rollback segments.
What are the logical operations?
What is the maximum number of triggers that can be applied to a single table?
How to update values on multiple rows in oracle?
What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statement use an index, even if the index scan may appear to be calculated as more costly?
Explain the different normalization forms?
what is IDE,DMV in sql server?
How to view existing locks on the database?
How to convert character types to numeric types?
How to specify default values in insert statement using oracle?
What is connection pooling in oracle?
can u send the sql dumps to sivakumarr1987@gmail.com plz help me