tencent cloud

Feedback

SQL Implicit Conversion

Last updated: 2024-08-07 17:30:00
To facilitate SQL writing and quickly switch from Hive/Spark statement to the unified DLC SQL, we provide implicit SQL conversion capabilities. The conversion list is as follows: I:implicit cast,E: explicit cast,--: not allowed
From-To
null
boolean
tinyint
smallint
int
bigint
decimal
float/real
double
interval
date
time
timestamp
[var]char
[var]binary
null
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
boolean
--
Ι
E
E
E
E
E
E
E
--
--
--
--
Ι
--
tinyint
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
E
--
--
E
Ι
--
smallint
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
E
--
--
E
Ι
--
int
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
E
--
--
E
Ι
--
bigint
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
E
--
--
E
Ι
--
decimal
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
E
--
--
E
Ι
--
float/real
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
--
--
--
E
Ι
--
double
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
--
--
--
E
Ι
--
interval
--
--
E
E
E
E
E
--
--
Ι
--
--
--
E
--
date
--
--
--
--
--
--
--
--
--
--
Ι
--
Ι
Ι
--
time
--
--
--
--
--
--
--
--
--
--
--
Ι
E
Ι
--
timestamp
--
--
E
E
E
E
E
E
E
--
Ι
E
Ι
Ι
--
[var]char
--
E
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
Ι
[var]binary
--
--
--
--
--
--
--
--
--
--
E
E
E
Ι
Ι

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support