Re: suming up in MySQL
| From: | David Otton | Date: | Tue, 11 Sep 2001 10:01:07 +0000 |
| Subject: | Re: suming up in MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66899@lists.php.net to get a copy of this message | ||
On Tue, 11 Sep 2001 11:51:05 +0200, you wrote:
> How to sum up all the values from a MySQL row ex.
>id - price
>1 1000
>2 300
>3 200
>
>How to sum up price row ?
SELECT SUM(price)
unsurprisingly enough...
djo