Show how functions and procedures are called in a pl/sql block.
Answer / Rajesh Tejan
Functions can be called using the function name followed by parentheses, while passing any required arguments. Procedures are called using the PROCEDURE name, followed by parentheses containing any required arguments enclosed within IS keyword (if any). For example:ntFUNCTION MyFunction(p1 NUMBER) RETURN VARCHAR2 IS ... END; ntPROCEDURE MyProcedure(p1 IN NUMBER) IS ... END; nntBEGINnttMyFunction(1);nttMyProcedure(1);ntEND;
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the command used to fetch the first 5 characters of a string?
how can we destroy the cookie? : Sql dba
What is an implicit commit?
What is data definition language?
who introduced sql?
What is sqlerrm?
How do you use join?
What is %type in pl sql?
Table Student has 3 columns,Student_id,Student_Name & Course_Id. Table Course has 2 columns, Course_Id & Course_Name.Write a query to listdown all the Courses and number of student in each course.
what is sp_pkeys? : Transact sql
What is the usage of NVL?
7 Answers Infosys, Micro Infotek,
1. what is the exact use of hint in sql. 2. How we can avoid index scan in sql even though index is there in the table.
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)