SUBSTR(x,a,b)
SUBSTR(x,a,b)
is a string function that outputs part of the character
string x
(string specification of
length n
). Only expressions that produce an
alphanumeric value are permitted as string specification x
. LOB
values are allowed. If x
is a LOB
value,
you must specify length b
of the desired subarea.
a
and b
are
expressions. The value b
may not be larger
than the column definition for a CHAR
column.
x, a, b |
Result of the SUBSTR(x,a,b) Function |
|---|---|
|
Part of the character string |
|
|
|
|
|
|
|
As many blanks (code
attribute |
|
|
SQL Tutorial, Functions, Changing character strings