El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

HetuEngine Implicit Conversion Table

Updated on 2024-12-13 GMT+08:00

After the implicit conversion function is enabled, implicit conversion is performed when the data type does not match. However, not all data types support implicit conversion. The following table lists the data type conversion tables supported by the implicit conversion function.

Table 1 Implicit conversion table

-

BOOLEAN

TINYINT

SMALLINT

INTEGER

BIGINT

REAL

DOUBLE

DECIMAL

VARCHAR

BOOLEAN

\

Y(1)

Y

Y

Y

Y

Y

Y

Y(2)

TINYINT

Y(3)

\

Y

Y

Y

Y

Y

Y

Y

SMALLINT

Y

Y(4)

\

Y

Y

Y

Y

Y

Y

INTEGER

Y

Y

Y

\

Y

Y

Y

Y

Y

BIGINT

Y

Y

Y

Y

\

Y

Y

Y

Y

REAL

Y

Y

Y

Y

Y

\

Y

Y(5)

Y

DOUBLE

Y

Y

Y

Y

Y

Y

\

Y

Y

DECIMAL

Y

Y

Y

Y

Y

Y

Y

\(6)

Y

VARCHAR

Y(7)

Y

Y

Y

Y

Y

Y

Y(8)

\

CHAR

N

N

N

N

N

N

N

N

Y

VARBINARY

N

N

N

N

N

N

N

N

N

JSON

N

N

N

N

N

N

N

N

Y

DATE

N

N

N

N

N

N

N

N

Y

TIME

N

N

N

N

N

N

N

N

Y

TIME WITH TIME ZONE

N

N

N

N

N

N

N

N

Y

TIMESTAMP

N

N

N

N

N

N

N

N

Y

TIMESTAMP WITH TIME ZONE

N

N

N

N

N

N

N

N

Y

Table 2 Implicit conversion table (continued)

-

CHAR

VARBINARY

JSON

DATE

TIME

TIME WITH TIME ZONE

TIMESTAMP

TIMESTAMP WITH TIME ZONE

BOOLEAN

N

N

Y

N

N

N

N

N

TINYINT

N

N

Y

N

N

N

N

N

SMALLINT

N

N

Y

N

N

N

N

N

INTEGER

N

N

Y

N

N

N

N

N

BIGINT

N

N

Y

N

N

N

N

N

REAL

N

N

Y

N

N

N

N

N

DOUBLE

N

N

Y

N

N

N

N

N

DECIMAL

N

N

Y

N

N

N

N

N

VARCHAR

Y(9)

Y

Y

Y(10)

Y(11)

Y(12)

Y(13)

Y

CHAR

\

N

N

N

N

N

N

N

VARBINARY

N

\

N

N

N

N

N

N

JSON

N

N

\

N

N

N

N

N

DATE

N

N

Y

\

N

N

Y(14)

Y

TIME

N

N

N

N

\

Y(15)

Y(16)

Y

TIME WITH TIME ZONE

N

N

N

N

Y

\

Y

Y

TIMESTAMP

N

N

N

Y

Y

Y

\

Y

TIMESTAMP WITH TIME ZONE

N

N

N

Y

Y

Y

Y

\

NOTE:
  1. The result of BOOLEAN->NUMBER can only be 0 or 1.
  2. The result of BOOLEAN->VARCHAR can only be TRUE or FALSE.
  3. For NUMBER -> BOOLEAN, 0 is false, and other values are true.
  4. The value of BIG PRECISION -> SMALL cannot be greater than the value range of the target type. Otherwise, an error is reported.
  5. The integer part of REAL/FLOAT ->DECIMAL must be greater than or equal to the integer part of REAL/FLOAT. Otherwise, an error is reported during conversion. If the decimal part is insufficient, the data is truncated.
  6. The integer part of the DECIMAL->DECIMAL target type must be greater than or equal to that of the source type. Otherwise, the conversion fails and the decimal part will be truncated if it is insufficient.
  7. For VARCHAR->BOOLEAN, only 0, 1, TRUE, and FALSE can be converted.
  8. For VARCHAR->DECIMAL, if the number of decimal places is greater than the number of decimal places of the target decimal, truncation occurs. If the number of integer places is greater than the number of decimal places of the target decimal, an error is reported.
  9. For VARCHAR->CHAR, if the length of VARCHAR exceeds the target length, truncation occurs.
  10. For VARCHAR->DATE, dates can only be separated by hyphens (-), for example, 2000-01-01.
  11. For VARCHAR->TIME, only the strict date format HH:MM:SS.XXX is supported.
  12. For VARCHAR->TIME ZONE, only the strict time format is supported, for example, 01:02:03.456 America/Los_Angeles.
  13. For VARCHAR->TIMESTAMP, only the strict format YYYY-MM-DD HH:MM:SS.XXX is supported.
  14. DATE->TIMESTAMP automatically supplements the time by adding 0s to the end, for example, 2010-01-01 to 2010-01-01 00:00:00.000.
  15. TIME->TIME WITH TIME ZONE automatically supplements the time zone.
  16. TIME->TIMESTAMP automatically supplements the date. The default value 1970-01-01 is used.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback