Oracle® OLAP DML Reference 10g Release 1 (10.1) Part Number B10339-02 |
|
|
View PDF |
The EXTLINES function extracts lines from a multiline text expression.
Return Value
TEXT or NTEXT
Syntax
EXTLINES(text-expression [start [numlines]])
Arguments
A multiline text expression from whose values one or more lines are to be extracted.
When you specify a TEXT expression, the return value is TEXT. When you specify an NTEXT expression, the return value is NTEXT.
An integer that represents the line number at which to begin extracting. The position of the first line in text-expression is 1
. When you omit this argument, EXTLINES begins with line 1.
An integer representing the number of lines to be extracted. When you do not specify numlines, or when you specify a number greater than the number of lines from start to the end of text-expression, all the lines from start to the end of text-expression are copied.
Examples
Example 12-8 Extracting One Text Line
This example shows how to extract the second line from a multiline text value in a variable called mktglist
. The mktglist
variable has the following values.
Salespeople Products Services
The statement
SHOW EXTLINES(mktglist 2 1)
produces the following output.
Products