From 2d66dfa8b7070bd05beb2a5cab236e1c3eb96d03 Mon Sep 17 00:00:00 2001 From: qiancai Date: Tue, 16 May 2023 13:48:12 +0800 Subject: [PATCH] Add note about SELECT CAST(MeN AS CHAR) incompatibility (#13518) --- data-type-date-and-time.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-type-date-and-time.md b/data-type-date-and-time.md index b321e2e231f2b..b206e89a65ac6 100644 --- a/data-type-date-and-time.md +++ b/data-type-date-and-time.md @@ -172,7 +172,7 @@ CREATE TABLE t1 ( ## Decimal part of time value -`DATETIME` and `TIMESTAMP` values can contain a fractional part of up to 6 digits which is accurate to milliseconds. In any column of `DATETIME` or `TIMESTAMP` types, a fractional part is stored instead of being discarded. With a fractional part, the value is in the format of 'YYYY-MM-DD HH:MM:SS[.fraction]', and the fraction ranges from 000000 to 999999. A decimal point must be used to separate the fraction from the rest. +`DATETIME` and `TIMESTAMP` values can contain a fractional part of up to 6 digits which is accurate to microseconds. In any column of `DATETIME` or `TIMESTAMP` types, a fractional part is stored instead of being discarded. With a fractional part, the value is in the format of 'YYYY-MM-DD HH:MM:SS[.fraction]', and the fraction ranges from 000000 to 999999. A decimal point must be used to separate the fraction from the rest. + Use `type_name(fsp)` to define a column that supports fractional precision, where `type_name` can be `TIME`, `DATETIME` or `TIMESTAMP`. For example,