select '合计', (select sum(score) from table1) from dual;

解决方案 »

  1.   

    select '合计', (select sum(score) from table1) from table1
      

  2.   

    select '合计',sum(SEID)  from table1;
      

  3.   

    谢谢楼上各位。select  name, score from table1
    union
    select '合计', (select sum(score) from table1) from table1这个又该怎么改呢?
    我想在查询的结果后面加一个合计。
      

  4.   

    select  name, score from table1
    union
    select '合计',sum(SEID)  from table1;
    注意对应位类型要一样!顺序要一样!
      

  5.   

    不用改,oracle可以直接用呀。
    也可以这样:
    Select name, score from table1 group by rollup(name);