HP Neoview SQL Reference Manual page 358

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

CAST (123.956 as INTERVAL DAY(18))
This example returns the difference of two timestamps in minutes:
CAST((d.step_end - d.step_start) AS INTERVAL MINUTE)
Suppose that your database includes a log file of user information. This example converts
the current timestamp to a character string and concatenates the result to a character literal.
Note the length must be specified.
INSERT INTO stats.logfile
(user_key, user_info)
VALUES (001, 'User JBrook, executed at ' ||
358
SQL Functions and Expressions
CAST (CURRENT_TIMESTAMP AS CHAR(26)));

Advertisement

Table of Contents
loading

Table of Contents