insert into tt values (2450,10),(1300,10),(1300,10),(5000,10),(4000,20); 查询: select sum(distinct sal) over(partition by deptno) sal,deptno from tt; DB2 Database Error: ERROR [42601] [IBM][DB2/NT] SQL0441N Invalid use of keyword DISTINCT or ALL with function "SUM". SQLSTATE=42601