23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SUFFIX<br />

SUFFIX<br />

Syntax<br />

128<br />

– Bigger than 0 and the column’s row data exceeds the column’s <strong>SQL</strong> width, the<br />

function returns the substring.<br />

• If length is not specified, the function returns the substring from start_pos to the end<br />

of the literal.<br />

• The function returns the end of the column’s row data if the length of the substring is not<br />

bigger than the column’s <strong>SQL</strong> width. Otherwise, the function returns the substring<br />

truncated to the column’s <strong>SQL</strong> width.<br />

Compatibility<br />

ODBC compatible<br />

Returns the substring of a character string starting after the position specified by start_pos and<br />

the second char_expression, to the end of the string.<br />

SUFFIX (char_expression , start_pos , char_expression )<br />

char_expression<br />

Evaluates to a character string, typically a character-string literal or column name. If the<br />

expression evaluates to NULL, SUFFIX returns NULL.<br />

start_pos<br />

Evaluates to an integer value. SUFFIX searches the string specified in the first argument<br />

starting at that position. A value of 1 indicates the first character of the string.<br />

char_expression<br />

Evaluates to a single character. SUFFIX returns the substring that begins with that<br />

character. If SUFFIX does not find the character after start_pos, it returns NULL. If the<br />

expression evaluates to more than one character, SUFFIX ignores all but the first character.<br />

Example This example illustrates two ways to use the SUFFIX function:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!