Skip Headers

Oracle® OLAP DML Reference
10g Release 1 (10.1)

Part Number B10339-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Feedback

Go to previous page
Previous
Go to next page
Next
View PDF

SUBSTRB

The SUBSTRB function returns a portion of string, beginning at a specified byte position, and a specified number of bytes long.

To retrieve a portion of string based on characters, use SUBSTR.

Return Value

The return value is the same data type as string.

Syntax

SUBSTRB (string , position [, substring_length])

Arguments

string

A text expression that is the base string from which the substring is created.

position

The position at which the first byte of the returned string begins.

substring_length

The number of bytes in the returned string. When you do not specify a value for this argument, then the function returns all bytes to the end of string. When you specify a value that is less than 1, the function returns NA.

Examples

Assume a double-byte database character set.

SHOW SUBSTRB('abcdefg',5,4.2) 
cd