in oracle 10g sw after compiling procedure how to pass
parameter values ,if we (v_empid out number)how to give
empid after successful compilation program.This site exact
suitable for 10g with respect to question & answer same
format , im trying sql browser & sql command prompt using
exec procedure name & respective parameters.



in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number..

Answer / Bhawana Yadav

To pass parameter values in a compiled Oracle PL/SQL procedure, you can use the EXECUTE statement. Here's an example:

```sql
DECLARE
v_empid NUMBER;
BEGIN
-- Compile and execute the stored procedure
EXECUTE procedure_name(v_empid OUT OUT_VARIABLE);
COMMIT;
-- Assign a value to v_empid
v_empid := 123456;
-- Re-execute the stored procedure with the assigned value
EXECUTE procedure_name(v_empid OUT OUT_VARIABLE);
END;
```
Replace `procedure_name`, `OUT_VARIABLE`, and the actual procedure definition according to your needs.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

what are different types of collation sensitivity? : Sql dba

1 Answers  


Interchange the value of a column Gender in a table where values are Male and Female. So, where the value is Male, it should changed to Female and Female to Male.

4 Answers   Cap Gemini, IBM,


What is dynamic sql in pl sql?

1 Answers  


What is mutating sql table?

1 Answers  


What is mdf ldf and ndf?

1 Answers  


What are different functions in sql?

1 Answers  


What are different sql data types?

1 Answers  


Can you alter start with clause?

1 Answers   TCS,


What is cte?

1 Answers  


What is the difference between a subquery and a join?

1 Answers  


What is field delimiter?

1 Answers  


What is a dirty read sql?

1 Answers  


Categories