PHP and MySQL Programming/Common Functions and Operators

COUNT

edit
mysql_query(" SELECT COUNT(*|`field_name`) FROM `table_name` ");
mysql> SELECT SUM(`field_name`) FROM `table_name`;