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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TO_TIMESTAMP<br />

Notes • The result is of type TIME.<br />

TO_TIMESTAMP<br />

Syntax<br />

134<br />

• Supply the time literal in any valid format.<br />

Compatibility<br />

Progress extension<br />

Converts the given timestamp literal to a timestamp value.<br />

Example The following example shows how to use the TO_TIMESTAMP function:<br />

Notes • The result is of type TIME.<br />

TRANSLATE<br />

Syntax<br />

SELECT * FROM orders<br />

WHERE order_date < TO_DATE ('05/15/2003')<br />

AND order_time < TO_TIME ('12:00:00') ;<br />

TO_TIMESTAMP ( timestamp_lit )<br />

SELECT * FROM DTEST WHERE C3 = TO_TIMESTAMP('4/18/03 10:41:19')<br />

• Supply the timestamp literal in any valid format.<br />

Compatibility<br />

Progress Extension<br />

Translates each character in char_expression that is in from_set to the corresponding<br />

character in to_set. The translated character string is returned as the result.<br />

TRANSLATE ( char_expression , from_set , to_set )<br />

Example This example substitutes underscores for spaces in customer names:

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

Saved successfully!

Ooh no, something went wrong!