0
不同的是這可能從一個表列中選擇不同的行和在單個查詢選擇不同和計數在MySQL
$sql = "SELECT DISTINCT location and COUNT(DISTINCT location)
FROM ".$db_name.".$table_name
ORDER BY location ASC
LIMIT ". $start_page.",". $recordPer_page."";
SELECT DISTINCT(位置),COUNT(DISTINCT(位置))FROM .... – scalopus