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.
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 |
what are different types of collation sensitivity? : Sql dba
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.
What is dynamic sql in pl sql?
What is mutating sql table?
What is mdf ldf and ndf?
What are different functions in sql?
What are different sql data types?
Can you alter start with clause?
What is cte?
What is the difference between a subquery and a join?
What is field delimiter?
What is a dirty read sql?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)