SQL/MX 2.x Reference Manual (H06.04+)

SQL/MX Functions and Expressions
HP NonStop SQL/MX Reference Manual540440-003
9-3
Character String Functions
See the individual entry for the function.
LPAD Function on page 9-79 Replaces the leftmost specified number of characters in
a character expression with a padding character.
LTRIM Function
on page 9-80 Removes leading spaces from a character string.
OCTET_LENGTH Function
on
page 9-101
Returns the length of a character string in bytes.
POSITION Function
on
page 9-105
Returns the position of a specified substring within a
character string. You can also use LOCATE.
REPEAT Function
on page 9-117 Returns a character string composed of the evaluation
of a character expression repeated a specified number
of times.
REPLACE Function
on
page 9-118
Returns a character string where all occurrences of a
specified character string in the original string are
replaced with another character string.
RIGHT Function
on page 9-119 Returns the rightmost specified number of characters
from a character expression.
RPAD Function
on page 9-122 Replaces the rightmost specified number of characters
in a character expression with a padding character.
RTRIM Function
on page 9-123 Removes trailing spaces from a character string.
SPACE Function
on page 9-141 Returns a character string consisting of a specified
number of spaces.
SUBSTRING Function
on
page 9-145
Extracts a substring from a character string.
TRANSLATE Function
on
page 9-152
Translates a character string from a source character set
to a target character set.
TRIM Function
on page 9-154 Removes leading or trailing characters from a character
string.
UCASE Function
on page 9-155 Upshifts single-byte characters. You can also use
UPSHIFT or UPPER.
UPPER Function
on page 9-163 Upshifts single-byte characters. You can also use
UPSHIFT or UCASE.
UPSHIFT Function
on
page 9-164
Upshifts single-byte characters. You can also use
UPPER or UCASE.