Current_Time Function; Example Of Current_Time - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

CURRENT_TIME Function

The CURRENT_TIME function returns the current local time as a value of type TIME.
CURRENT_TIME [(precision)]
precision
is an integer value in the range 0 to 6 that specifies the precision of (the number of decimal
places in) the fractional seconds in the returned value. The default is 0.
For example, the function CURRENT_TIME (2) returns the current time as a value of data
type TIME, where the precision of the fractional seconds is 2—for example, 14:01:59.30. The
value returned is not a string value.

Example of CURRENT_TIME

Use CURRENT_DATE and CURRENT_TIME as a value in an inserted row:
INSERT INTO stats.logfile
(user_key, run_date, run_time, user_name)
VALUES (001, CURRENT_DATE, CURRENT_TIME, 'JuBrock');
CURRENT_TIME Function
315

Advertisement

Table of Contents
loading

Table of Contents