Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于下面的查询,某些行在名为“zip”的字段中具有相同的值。如何计算“zip”而不是总行数的唯一值?
$presult = mysql_query("SELECT COUNT(*) from submission ") or die(mysql_error());
SELECT COUNT(DISTINCT zip) AS unique_zip_cnt FROM submission