1
這是我當前的查詢:與COUNT獲取行的名稱在SQL
SELECT COUNT(`location`) AS 'amount' FROM offers GROUP BY location;
這將返回:
不過,我希望能夠歸因每一個數目價值。例如,它會輸出:
基本上,基
SELECT COUNT(`location`) AS 'amount' FROM offers GROUP BY location;
和
SELECT location FROM offers GROUP BY location;
成一個查詢
'選擇位置,計數(位置)量報價按位置' – Jhecht 2014-11-01 23:04:28