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 would you begin to troubleshoot an ORA-3113 error?
If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...
Explain how you would restore a database using RMAN to Point in Time?
What is truncate oracle?
How to start instance with a minimal initialization parameter file?
What is the usage of synonyms?
How to use subqueries with the in operator using oracle?
Describe an oracle table?
How to retrieve the count of updated rows?
Can we insert data in view oracle?
How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?
what is the use of triggers in Java program? I mean where do we use triggers in Java programming?
How we can able to import our own template (users designed MS-Word templates) which has many tabular columns; need to pass some values generate by Oracle-reports9i? Actually need to import more than 400 MS-Word templates into Oracle Reports-9i to minimize layout design in Reports.
Explain the use of log option in exp command.
What is a nested table?