< PHP and MySQL Programming
COUNT
mysql_query(" SELECT COUNT(*|`field_name`) FROM `table_name` ");
SUM
mysql> SELECT SUM(`field_name`) FROM `table_name`;
This article is issued from
Wikibooks.
The text is licensed under Creative
Commons - Attribution - Sharealike.
Additional terms may apply for the media files.