Arithmetic Functions
No. |
MySQL |
GaussDB |
Difference |
---|---|---|---|
1 |
ABS() |
Supported. |
- |
2 |
ACOS() |
Supported. |
- |
3 |
ASIN() |
Supported. |
- |
4 |
ATAN() |
Supported. |
- |
5 |
ATAN2() |
Supported. |
- |
6 |
CEILING() |
Supported, with differences. |
Some operation result types and the precision of CREATE TABLE AS are inconsistent with that in MySQL.
|
7 |
COS() |
Supported. |
- |
8 |
DEGREES() |
Supported. |
- |
9 |
EXP() |
Supported. |
- |
10 |
FLOOR() |
Supported, with differences. |
Some operation result types and the precision of CREATE TABLE AS are inconsistent with that in MySQL.
|
11 |
LN() |
Supported. |
- |
12 |
LOG() |
Supported. |
- |
13 |
LOG10() |
Supported. |
- |
14 |
LOG2() |
Supported. |
- |
15 |
PI() |
Supported. |
When the precision transfer function is disabled, that is, m_format_behavior_compat_options is not set to enable_precision_decimal, the returned value of the PI function is rounded off to six decimal places in MySQL, but is rounded off to 15 decimal places in GaussDB. |
16 |
POW() |
Supported. |
- |
17 |
POWER() |
Supported. |
- |
18 |
RAND() |
Supported. |
- |
19 |
SIGN() |
Supported. |
- |
20 |
SIN() |
Supported. |
- |
21 |
SQRT() |
Supported. |
- |
22 |
TAN() |
Supported. |
- |
23 |
TRUNCATE() |
Supported. |
- |
24 |
CEIL() |
Supported. |
- |
25 |
CRC32() |
Supported, with differences. |
When the length of the inserted string of the BINARY type is less than the target length, the padding characters in GaussDB are different from those in MySQL. Therefore, when the input parameter is of the BINARY type, the function result in GaussDB is different from that in MySQL. |
26 |
CONV() |
Supported. |
- |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot