<샘플코드에서 사용한 데이터는 HR 스키마이고, 오라클 설치시 생성할 수 있는 기본 스키마 입니다>

Examples :
• we can crate function to return the salary for an employee
• Function to retrieve the full name for the employee
• Function to calculate the GPA for the Student
• Function to compute the tax for a salary

• Host variables not allowed, also substitute variables
• It should be at least one return expression in executable section
• Return datatype should be without size.
• Out / IN OUT can be used , but this not good Practice

A Procedure that have one Parameter( OUT) would be better rewritten as A function

'Database > PLSQL' 카테고리의 다른 글
| 041 - [Oracle PL/SQL] Functions - no_data_found (0) | 2024.02.24 |
|---|---|
| 040 - [Oracle PL/SQL] Creating function (0) | 2024.02.24 |
| 038 - [Oracle PL/SQL] Procedure - Boolean/records as parameters (0) | 2024.02.23 |
| 037 - [Oracle PL/SQL] Procedure - Exception handling in multiple blocks (0) | 2024.02.23 |
| 036 - [Oracle PL/SQL] Procedure - Default option for Parameters (0) | 2024.02.23 |