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

INT

INT

A cast function that returns the INTEGER datatype representation of a numeric or character input expression. The value produced by the conversion must fall within the range of the INTEGER type, or else an error condition will result. If present, the decimal part of the input value is rounded.

INT Syntax

INT (char) INTEGER (char)

INT Examples

Input
Output
'1.024e4'
10240
1.024099999999e+04
10241
CREATE TABLE temp_int (col1 INT); INSERT INTO temp_int values (INTEGER('1.024e4')); 1 row affected INSERT INTO temp_int values (INTEGER(1.024099999999e+04)); 1 row affected SELECT * FROM temp_int; 2 rows selected COL1 ----------- 10240 10241

0 COMMENTS

We’d like to hear from you!