RE: [PHP-DB] Is this possible in mysql?
| From: | NCI/IMS) | Date: | Fri, 08 Mar 2002 19:19:13 +0000 |
| Subject: | RE: [PHP-DB] Is this possible in mysql? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-17581@lists.php.net to get a copy of this message | ||
Here's an example for how to select the sum of a column in SQL. Maybe that
will help.
-Natalie
http://www.devguru.com/Technologies/jetsql/quickref/sum.html
> -----Original Message-----
> From: Leif K-Brooks [SMTP:eurleif@buyer-brokerage.com]
> Sent: Friday, March 08, 2002 2:17 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Is this possible in mysql?
>
> I need to add up the (integer) values of columns, and return the added up
> value as one column to php. Is this possible? Or is there something else
> to do it? (I'd rather not have to mysql_fetch_array() in a while loop and
> add it up there, it might be a lot of rows)
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php