PHP and MySQL Programming/Common Functions and Operators
< PHP and MySQL ProgrammingCOUNT
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.