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

JOINLINES

The JOINLINES function joins the values of two or more text expressions into a single multiline value. When multiline text values are joined, all the lines of the first expression appear first, followed by all the lines of the second expression, and so forth. Normally the arguments for JOINLINES are text values, but they can have other data types.

Return Value

TEXT or NTEXT

This function accepts TEXT values and NTEXT values as arguments. The data type of the return value depends on the data type of the values specified for the arguments:

Syntax

JOINLINES(first-expression next-expression...)

Arguments

first-expression

An expression to which JOINLINES adds next-expression. When the expression has a data type other than TEXT or NTEXT, JOINLINES converts it to TEXT. See "Converting Expressions That Are not TEXT or NTEXT".

next-expression...

One or more expressions to join with first-expression. When an expression you want to concatenate has a data type other than TEXT, JOINLINES converts it to TEXT. See "Converting Expressions That Are not TEXT or NTEXT".

Notes


Converting Expressions That Are Not TEXT or NTEXT

When the data type of an expression is not TEXT or NTEXT, JOINLINES automatically converts its value to TEXT before concatenating it with the other values. So when you put a number in a JOINLINES function, the number is automatically converted to TEXT and no extra step is need to accomplish this. The format of the result depends on the settings of the COMMAS and DECIMALS options.


NA Values

JOINLINES ignores any arguments that have a value of NA.

Examples

Example 15-28 Joining the Lines of Two Text Expressions

This example shows how to make a new list by adding the value Regions to the end of a variable called mktglist.

mktglist has the following initial values.

Salespeople
Products
Services

The statement

newlist = JOINLINES(mktglist 'Regions')

assigns the following to newlist.

Salespeople
Products
Services
Regions