Arithmetic Functions
Function |
Differences Compared with MySQL |
---|---|
ABS() |
- |
ACOS() |
- |
ASIN() |
- |
ATAN() |
- |
ATAN2() |
- |
CEILING() |
In some scenarios, the return type of the function in GaussDB is different from that in MySQL. Therefore, table columns generated by CREATE TABLE AS compared to MySQL.
|
CEIL() |
|
FLOOR() |
|
COS() |
- |
DEGREES() |
- |
EXP() |
- |
LN() |
- |
LOG() |
- |
LOG10() |
- |
LOG2() |
- |
PI() |
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. |
POW() |
- |
POWER() |
- |
RAND() |
- |
SIGN() |
- |
SIN() |
- |
SQRT() |
- |
TAN() |
- |
TRUNCATE() |
- |
CRC32() |
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. |
CONV() |
- |
COT() |
- |
RADIANS() |
- |
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