From ab2b466619ae16e147f2a4f8992323ff59b5d990 Mon Sep 17 00:00:00 2001 From: yanghaitao5000 <91644845+yanghaitao5000@users.noreply.github.com> Date: Sun, 12 Nov 2023 21:47:59 +0800 Subject: [PATCH] Update cast.md Signed-off-by: yanghaitao5000 <91644845+yanghaitao5000@users.noreply.github.com> --- .../operators/cast-functions-and-operators/cast.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/MatrixOne-Cloud/Reference/Operators/operators/cast-functions-and-operators/cast.md b/docs/MatrixOne-Cloud/Reference/Operators/operators/cast-functions-and-operators/cast.md index bac0dd51..c2419246 100644 --- a/docs/MatrixOne-Cloud/Reference/Operators/operators/cast-functions-and-operators/cast.md +++ b/docs/MatrixOne-Cloud/Reference/Operators/operators/cast-functions-and-operators/cast.md @@ -39,15 +39,17 @@ mysql> SELECT CAST(a AS FLOAT) a_cast,CAST(b AS UNSIGNED) b_cast,CAST(c AS SIGNE +--------+--------+--------+--------+ | a_cast | b_cast | c_cast | d_cast | +--------+--------+--------+--------+ -| 1.0000 | 1 | 1 | -2 | +| 1 | 2 | 1 | -2 | +--------+--------+--------+--------+ +1 row in set (0.01 sec) mysql> SELECT CAST(a AS CHAR) a_cast, CAST(b AS CHAR) b_cast,CAST(c AS DOUBLE) c_cast, CAST(d AS FLOAT) d_cast from t1; -+--------+--------+--------+---------+ -| a_cast | b_cast | c_cast | d_cast | -+--------+--------+--------+---------+ -| 1 | 1.5 | 1.0000 | -2.0000 | -+--------+--------+--------+---------+ ++--------+--------+--------+--------+ +| a_cast | b_cast | c_cast | d_cast | ++--------+--------+--------+--------+ +| 1 | 1.5 | 1 | -2 | ++--------+--------+--------+--------+ +1 row in set (0.00 sec) ``` ## **限制**