驗證網址ithelp.ithome.com.tw安全性

SQL 語法,加總計算。 二個加總欄位條件不一的情況。 - iT邦幫忙::IT知識分享社群

hitomitanaka 的語法 for mysql 是正確的; 另一語法 select name,sum(case WHEN cond=0 then col1 else 0 end) AS '加總欄位1', sum(col2) AS '加總欄位2' from ithelp040417 group by name...

網址安全性掃描由 google 提供