Archive:PHP and MySQL Programming/Common Functions and Operators: Difference between revisions
Appearance
wikademia>Ralfe No edit summary |
wikademia>Wikademia m moved PHP and MySQL Programming/Common Functions and Operators to Archive:PHP and MySQL Programming/Common Functions and Operators over redirect |
||
| (11 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
== COUNT == | == COUNT == | ||
| Line 8: | Line 6: | ||
mysql> SELECT SUM(`field_name`) FROM `table_name`; | mysql> SELECT SUM(`field_name`) FROM `table_name`; | ||
[[../Basic Queries/|Previous: Basic Queries]] | [[../|TOC]] | [[../XML and PHP/|Next: XML and PHP]] | |||
[[Category:PHP and MySQL Programming|{{SUBPAGENAME}}]] | |||
Latest revision as of 07:37, 12 June 2009
COUNT
mysql> SELECT COUNT(*|`field_name`) FROM `table_name`;
SUM
mysql> SELECT SUM(`field_name`) FROM `table_name`;
[[../Basic Queries/|Previous: Basic Queries]] | [[../|TOC]] | [[../XML and PHP/|Next: XML and PHP]]