Jump to content

Archive:PHP and MySQL Programming/Common Functions and Operators: Difference between revisions

From IdeaWazaWiki
wikademia>Ralfe
No edit summary
 
wikademia>Ralfe
No edit summary
Line 1: Line 1:
[[Programming:PHP and MySQL|TOC]]
== COUNT ==
== COUNT ==



Revision as of 08:01, 25 March 2006

TOC

COUNT

mysql> SELECT COUNT(*|`field_name`) FROM `table_name`;

SUM

mysql> SELECT SUM(`field_name`) FROM `table_name`;