首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

数据库合并字段解决方案

2012-03-21 
数据库合并字段word numbera 12a 15a 12b 26得到结果为word numbera 39b 26select word,sum(number) from

数据库合并字段
word number
 a 12
 a 15
 a 12
 b 26
得到结果为
word number
 a 39
 b 26
select word,sum(number) from 表名 group by word这个有时管用有时没用....如果我想用updata应该怎么做呢?希望大家帮忙

[解决办法]

探讨
这个问题解决了 是我的问题 现在遇到了新的问题 select * into a from b a是新的表名,b是旧的表名,在数据库中使用会提示错误Undeclared variable:a ,网上的例子大多也都是这个样子,不知道哪里不对?

热点排行