NVL function in Oracle PLSQL



In this blog, we will study and understand the concept of Oracle pl sql NVL function.

What is NVL function?

a> NVL - - > Null Value Logic

b> NVL function is used to replace NULL value with another value.

c> Syntax for NVL function in Oracle PL SQL

    
     NVL (expression, replace_value)

c> expression and replace value must be compatible data types.

Table name: Salary_Mech_Dept

Apply NVL function to Salary_Mech_Dept table:                                                                                                     
                     Select  S. No,        
                                                                                         NVL(Salary,0)                                                  
from
                         Salary

After running the above query, we will get the below result.





                             Hope you understand the NVL function in Oracle Pl Sql.

                                          Write us for any suggestions/Queries !!!

                                                       Contact us : 97908 40389






Comments