0
每個人,我如何通過關鍵字組獲得組數?
我有檢索所有日化集團通過作爲帖子ID以下SQL:
Select * from table group by postid;
,但我需要計算總組。下面不適用於我,它列出每個組的計數!但我需要總組號!
Select count(*) from table group by postid;
我怎樣才能得到這個SQL的所有行號? (從表格組中選擇* by postid;)
謝謝!
添加表名稱「表」爲「表」或[表] –