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.

RTRIM<br />

Syntax<br />

Compatibility<br />

Progress extension<br />

RTRIM<br />

Removes all the trailing characters in char_expression that are present in char_set and returns<br />

the resultant string. The last character in the result is guaranteed not to be in char_set. If you<br />

do not specify a char_set, trailing blanks are removed.<br />

Example This example illustrates the RTRIM function:<br />

Notes • The first argument to the function must be of type CHARACTER.<br />

SECOND<br />

Syntax<br />

RTRIM ( char_expression [ , char_set ] )<br />

SELECT RPAD ( RTRIM (addr, ' '), 30, '.')<br />

FROM customer ;<br />

• The second argument to the function must be of type CHARACTER.<br />

• The result is of type CHARACTER.<br />

• If the argument expression evaluates to NULL, the result is NULL.<br />

• The char_expression, the character set specified by char_set, and the result can contain<br />

multi-byte characters. Character comparisons are case sensitive and are determined by the<br />

collation table in the database.<br />

Compatibility<br />

ODBC compatible<br />

Returns the seconds in the argument as a short integer value in the range of 0–59.<br />

SECOND ( time_expression )<br />

Example This example illustrates the SECOND function, requesting all columns from rows in the arrivals<br />

table where the in_time column is less than or equal to ‘40’:<br />

SELECT * FROM arrivals WHERE SECOND (in_time)

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

Saved successfully!

Ooh no, something went wrong!