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


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


Sorry, you can't reply to this topic. It has been closed.

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.