Table of Contents

Search

  1. About the Data Vault SQL Reference
  2. Introduction to SQL Reference for Informatica Data Vault
  3. Date and Time Arithmetic
  4. WHERE Clauses
  5. UNION Operator
  6. Parameterized Query
  7. Functions

Data Vault SQL Reference

Data Vault SQL Reference

TIME

TIME

A cast function that returns a TIME datatype representation of a TIME, TIMESTAMP, or character string input expression. An input string expression must correspond to either the standard TIME format (hh:mm:ss), or any legal format that matches the time picture (TimePic) specified in the [CLIENT] section of the nucleus.ini file.

TIME Syntax

TIME (char)

TIME Example

Input
Output
'1999-03-01-01.59.30.123456'
01:59:30
'23:12:23'
23:12:23
CREATE TABLE temp_time (col1 TIME); CREATE TABLE temp_timestamp (c1 TIMESTAMP); INSERT INTO temp_timestamp VALUES ('1999-03-01-01.59.30.123456'); 1 row affected INSERT INTO temp_time SELECT TIME(c1) FROM temp_timestamp; 1 row affected INSERT into temp_time VALUES (TIME('23:12:23')); 1 row affected SELECT col1 FROM temp_time; 2 rows selected col1 -------- 01:59:30 11:12:23

0 COMMENTS

We’d like to hear from you!