MySQL Forums
Forum List  »  Newbie

Re: Display sum of table in one line of text?
Posted by: Claude Martin
Date: March 28, 2005 12:47PM

> However, what I want to do now, is to display the
> sum of the number in a column, as a number in a
> text line at the bottom of the table. eg:
>
> Column A
> 5
> 4
> 1
> -----------
> Column A Total: 9

http://dev.mysql.com/doc/mysql/en/group-by-modifiers.html

-> ROLLUP

maybe this is what you want.

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
Re: Display sum of table in one line of text?
March 28, 2005 12:47PM


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.