Repeat Function; Example Of Repeat; Replace Function - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

1.48020166531456112E+004
1.25639147428923072E+004
1.09258501408357232E+004
--- 5 row(s) selected.
Note that you can use the CAST function for display purposes. For example:
SELECT CAST(RUNNINGSTDDEV (I1) AS DEC (18,3))
FROM mining.seqfcn
SEQUENCE BY TS;
(EXPR)
--------------------
--- 5 row(s) selected.

REPEAT Function

The REPEAT function returns a character string composed of the evaluation of a character
expression repeated a specified number of times.
REPEAT is a Neoview SQL extension.
REPEAT (character-expr, count)
character-expr
specifies the source string from which to return the specified number of repeated strings.
The source string is an SQL character value expression. The operand is the result of evaluating
character-expr. See
count
specifies the number of times the source string character-expr is to be repeated. The
number count must be a value greater than or equal to zero of exact numeric data type and
with a scale of zero.

Example of REPEAT

Return this quote from Act 5, Scene 3, of King Lear:
REPEAT ('Never,', 5)
Never,Never,Never,Never,Never,

REPLACE Function

The REPLACE function returns a character string where all occurrences of a specified character
string in the original string are replaced with another character string.
REPLACE is a Neoview SQL extension.
REPLACE (char-expr-1, char-expr-2, char-expr-3)
char-expr-1, char-expr-2, char-expr-3
are SQL character value expressions. The operands are the result of evaluating the character
expressions. All occurrences of char-expr-2 in char-expr-1 are replaced by
char-expr-3. See
390
SQL Functions and Expressions
.000
15527.357
14802.016
12563.914
10925.850
"Character Value Expressions" (page
"Character Value Expressions" (page
208).
208).

Advertisement

Table of Contents
loading

Table of Contents