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

NANOSECOND

NANOSECOND

A date and time function that returns the fractional second portion of a time stamp value in nanosecond precision. The function returns the nanosecond value as an integer.

Syntax

NANOSECOND (char)

Example

Input
Output
'2004-02-17-15.08.37.588000'
588000000000
'2004-02-17-15.08.37.588000123456'
588000123456
CREATE TABLE dt_table (timestamp_col TIMESTAMP); INSERT INTO dt_table VALUES ('2004-02-17-15.08.37.588000'); 1 row affected SELECT timestamp_col, NANOSECOND(timestamp_col) AS result FROM dt_table; 1 row selected timestamp_col result -------------------------- ----------- 2004-02-17-15.08.37.588000 588000000000

0 COMMENTS

We’d like to hear from you!