Archive:PHP and MySQL Programming/Common Functions and Operators: Difference between revisions
Appearance
wikademia>The Kid No edit summary |
wikademia>Darklama m Programming:PHP and MySQL:Common Functions and Operators moved to Programming:PHP and MySQL/Common Functions and Operators: fixing copy+paste move |
(No difference)
| |
Revision as of 13:09, 2 April 2007
COUNT
mysql> SELECT COUNT(*|`field_name`) FROM `table_name`;
SUM
mysql> SELECT SUM(`field_name`) FROM `table_name`;