php - Showing how many rows are grouped into the same field -
the query below shows list of "zip"s in mysql table. groups rows have same "zip".
how create new variable shows how many rows share each "zip"?
$query2 = "select zip submission group zip order zip asc";
add count(*) select list:
select zip, count(*) submission group zip order zip asc
Comments
Post a Comment