Aggregate Functions
MySQL |
GaussDB |
Difference |
---|---|---|
AVG() |
Supported, with differences. |
|
BIT_AND() |
Supported. |
- |
BIT_OR() |
Supported. |
- |
BIT_XOR() |
Supported. |
- |
COUNT() |
Supported, with differences. |
If DISTINCT is specified and the SQL statement contains the GROUP BY clause, GaussDB does not sort the results, while MySQL sorts the results. |
GROUP_CONCAT() |
Supported, with differences. |
|
MAX() |
Supported, with differences. |
If DISTINCT is specified and the SQL statement contains the GROUP BY clause, GaussDB does not sort the results, while MySQL sorts the results. When the parameter is not a table column, the return value type of the MAX function is different from that of MySQL 5.7. |
MIN() |
Supported, with differences. |
If DISTINCT is specified and the SQL statement contains the GROUP BY clause, GaussDB does not sort the results, while MySQL sorts the results. When the parameter is not a table column, the return value type of the MIN function is different from that of MySQL 5.7. |
SUM() |
Supported, with differences. |
|
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