回复:用集合的方式求积

替换power函数的部分
SELECT EXP(SUM(LOG(ABS(num))))*(SUM(CASE WHEN SIGN(num)=-1 THEN -1 ELSE 0 END)%2) from t