有没有SQL语句能在 显示完数据后最后一行显示数据的总和? select name,sum(price) from tb group by rollup(name) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select name,price from tb unionselect '',sum(price) from tb~ 在sqlplus里可以如:break on reportcompute sum of price on reportselect name,price from tab; lijiawen(jia) ( ) 信誉:100 的方法不错select name,price from tb unionselect '',sum(price) from tb 我也觉得lijiawen(jia)的方法不错。 select name,price from tablename unionselect '合计',sum(price) from tablename 为什么number数据类型不正确? suse linux10下安装oracle11出现的问题 表连接与where条件执行先后顺序 如何重组表空间 想请问这个出错的原因 修改DBLINK问题请教 弱弱的问一句,为什么所有的用户都能用As sysdba登录啊? 帮忙写个存储过程!!!!!!! 各位大侠!!!!!! 谁有TOAD for DB2 的注册码? 数据查询问题 请问大家在oracle中怎样用一个字段唯一标识一条记录? 在sqlserver中,datediff(mi,date1,date2),在oracle中怎么表示?
union
select '',sum(price) from tb~
如:
break on report
compute sum of price on reportselect name,price from tab;
union
select '',sum(price) from tb
union
select '合计',sum(price) from tablename