Preamble
The Oracle/PLSQL LENGTH function returns the length of the specified string.
Syntax of the Oracle/PLSQL LENGTH function
LENGTH( string1_id )
Parameters and function arguments
- string1_id – string whose length the function returns. string1 can be CHAR, VARCHAR2, NCHAR, NVARCHAR2, CLOB, or NCLOB.
The LENGTH function returns a numeric value.
If string1 is NULL, the LENGTH function will return NULL.
The LENGTH function can be used in the following versions of Oracle/PLSQL
|
Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
|
Let’s consider some examples of the LENGTH function and learn how to use the LENGTH function in Oracle PLSQL.
SQL> SELECT LENGTH(NULL) FROM DUAL;
--Result: NULL
SQL> SELECT LENGTH('') FROM DUAL;
--Result: NULL
SQL> SELECT LENGTH(' ') FROM DUAL;
--Result: 1
SQL> SELECT LENGTH('1') FROM DUAL;
--Result: 1
SQL> SELECT LENGTH('Antiquities Shop') FROM DUAL;
--Result: 16
SQL> SELECT LENGTH('Antiquities Shop ') FROM DUAL;
--Result: 17
Tutorial: How to find the length of column in Oracle SQL – Length Function
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
Accelerating Retail Growth: How Enteros Transforms Performance Management for Scalable Digital Operations
- 16 December 2025
- Database Performance Management
Introduction Retail growth today is no longer driven solely by store expansion or product variety—it is powered by digital performance. From omnichannel commerce and real-time inventory visibility to AI-powered personalization and dynamic pricing, modern retail depends on fast, reliable, and scalable technology ecosystems. However, as retailers grow, their digital operations become increasingly complex. Cloud-native architectures, … Continue reading “Accelerating Retail Growth: How Enteros Transforms Performance Management for Scalable Digital Operations”
Intelligent Healthcare Infrastructure: How Enteros Elevates Database Optimization Through AIOps and Cloud FinOps
Introduction Healthcare organizations are experiencing an unprecedented digital shift. Electronic Health Records (EHRs), telemedicine platforms, AI-driven diagnostics, patient engagement applications, research databases, and cloud-based clinical systems now form the backbone of modern healthcare delivery. These systems generate and process enormous volumes of sensitive data—often in real time—making database performance, reliability, and cost efficiency mission-critical. However, … Continue reading “Intelligent Healthcare Infrastructure: How Enteros Elevates Database Optimization Through AIOps and Cloud FinOps”
Driving Cost-Efficient Innovation: Enteros Performance Management Platform for Accurate Technology Cost Estimation
- 15 December 2025
- Database Performance Management
Introduction The technology sector is at the epicenter of global innovation. From cloud-native applications and SaaS platforms to AI-driven analytics and real-time digital services, modern technology organizations operate in environments defined by speed, scale, and complexity. However, as innovation accelerates, so do operational challenges—particularly around performance management, cloud cost estimation, and financial predictability. Today’s technology … Continue reading “Driving Cost-Efficient Innovation: Enteros Performance Management Platform for Accurate Technology Cost Estimation”
Future-Ready Fashion Tech: How Enteros Combines Database Optimization and Cloud FinOps for Smarter Operations
Introduction The fashion industry has evolved far beyond seasonal collections and brick-and-mortar storefronts. Today’s fashion brands operate as highly digital, data-driven enterprises—powered by eCommerce platforms, global supply chain systems, AI-powered demand forecasting, personalization engines, and SaaS-based retail applications. At the heart of this transformation lies a complex web of databases, cloud resources, and analytics platforms. … Continue reading “Future-Ready Fashion Tech: How Enteros Combines Database Optimization and Cloud FinOps for Smarter Operations”