Oracle/plsql:length Function-from Cyber

Source: Internet
Author: User

Oracle/plsql:LENGTH Function

This is the Oracle/plsql LENGTH function with syntax and examples of Oracle tutorial explains.

Description

The Oracle/plsql length function returns the length of the specified string.

Syntax

The syntax for the LENGTH function in Oracle/plsql is:

LENGTH( string1 )
Parameters or Arguments
String1
The
string to return the length for.

Note: If string1 is null and then the LENGTH function would return NULL.

Applies To

The LENGTH function can be used in the following versions of Oracle/plsql:

    • Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
Example

Let's look at some Oracle LENGTH function examples and explore, the length function in Oracle/plsql.

For example:

LENGTH(NULL)Result: NULLLENGTH(‘‘)Result: NULLLENGTH(‘ ‘)Result: 1LENGTH(‘Tech on the Net‘)Result: 15LENGTH(‘Tech on the Net ‘)Result: 16

Oracle/plsql:length Function-from Cyber

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.