Preamble
Oracle/PLSQL NVL function allows you to replace the value when there is a Null value.
Oracle/PLSQL syntax of NVL functions
NVL( string1_id, replace_with_id )
Parameters or arguments
- string1_id – string which is checked for a Null value.
- replace_with_id – the return value if string1 is Null.
NVL function in the following versions of Oracle/PLSQL
|
Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
|
Let’s look at some examples of the Oracle NVL function and learn how to use the NVL function in Oracle PLSQL.
SELECT NVL(suppl_city, 'n/a')
FROM suppls;
The SQL query above will return ‘n/a’ if the suppl_city field contains a Null value. Otherwise, it will return the suppl_city value.
Another example of using NVL function in Oracle/PLSQL:
SELECT suppl_id,
NVL(suppl_desc, suppl_name)
FROM suppls;
SQL query will return suppl_name field if suppl_desc contains Null. Otherwise, it will return suppl_desc.
Last example of using NVL function in Oracle/PLSQL:
SELECT NVL(commission, 0)
FROM sales;
SQL query will return 0 if the commission field contains Null value. Otherwise, it will return the commission field value.
About Enteros
Enteros offers a patented database performance management SaaS platform. It proactively identifies root causes of complex business-impacting database scalability and performance issues across a growing number of clouds, RDBMS, NoSQL, and machine learning database platforms.
The views expressed on this blog are those of the author and do not necessarily reflect the opinions of Enteros Inc. This blog may contain links to the content of third-party sites. By providing such links, Enteros Inc. does not adopt, guarantee, approve, or endorse the information, views, or products available on such sites.
Are you interested in writing for Enteros’ Blog? Please send us a pitch!
RELATED POSTS
How to Enable Intelligent Financial Growth Management with Enteros Database Management Platform and AIOps Analytics
- 31 May 2026
- Database Performance Management
Introduction The financial services industry is evolving rapidly as organizations modernize digital banking platforms, expand cloud infrastructures, and leverage advanced technologies to improve customer experiences, operational efficiency, and business growth. Modern financial ecosystems now support: Digital banking applications Online payment platforms Wealth management systems Financial analytics environments Customer engagement platforms Fraud detection systems Cloud-native financial … Continue reading “How to Enable Intelligent Financial Growth Management with Enteros Database Management Platform and AIOps Analytics”
How to Modernize Telecom Cost Estimation with Enteros Intelligent Database Management and Generative AI
Introduction The telecommunications industry is evolving rapidly as service providers modernize network infrastructures, expand digital services, and invest heavily in cloud-native technologies to support growing customer demands. Modern telecom ecosystems now support: 5G network operations Mobile and broadband services Customer billing platforms Network management systems IoT connectivity infrastructures Telecom analytics environments Cloud-native telecommunications platforms Real-time … Continue reading “How to Modernize Telecom Cost Estimation with Enteros Intelligent Database Management and Generative AI”
Enteros Guide to Enhancing Customer Experience Through Intelligent Database Performance Management
- 29 May 2026
- Database Performance Management
In today’s digital-first economy, customer experience has become one of the most important competitive differentiators for businesses across every industry. Customers expect applications and digital platforms to deliver fast response times, uninterrupted availability, seamless transactions, and personalized interactions at all times. Whether customers are using banking applications, SaaS platforms, e-commerce websites, healthcare portals, telecommunications systems, … Continue reading “Enteros Guide to Enhancing Customer Experience Through Intelligent Database Performance Management”
Boost Digital Customer Experience with Proactive Database Performance Optimization
In today’s digital economy, customer experience has become the foundation of business success. Customers expect every digital interaction — whether through mobile apps, SaaS platforms, e-commerce websites, financial systems, or customer portals — to be fast, seamless, reliable, and always available. A slow-loading application, delayed transaction, failed login, or service outage can instantly damage customer … Continue reading “Boost Digital Customer Experience with Proactive Database Performance Optimization”