MySQL Forums
Forum List  »  MySQL Workbench

Define Data Type on COUNT()
Posted by: Miguel Jimenez
Date: November 23, 2018 10:22PM

How can I define the data type on count(). I'm using it as this:

SELECT row1, row2, COUNT(attribute)
FROM table
GROUP BY attribute;

the current display is integer, but I want to display as decimal with two digits. How can I change the count() function?

Options: ReplyQuote

Written By
Define Data Type on COUNT()
November 23, 2018 10:22PM

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.