这个地方肯定不能用sequence啊,你要不先用rownum,而后再update b.idinsert into b (id,a,b,c)
select rownum,a,b,d
from (
select a,b,sum(c) d
from a group by a,b)
select rownum,a,b,d
from (
select a,b,sum(c) d
from a group by a,b)
解决方案 »
- 请问怎样解决“ora-04098:触发器 无效且未通过重新验证”这个问题
- 求教:count及group by应用
- proc问题,兄弟们来看看
- oracle允许在sys方案中创建数据表,为什么不允许在创建的数据表上写触发器?
- Win2000怎么装不上Oracle9i??不怎么是怎么回事??在线等????
- 求救!请帮帮我吧!看看这个存储过程有什么问题啊!!!
- 一个简单的SQL文性能改善问题
- oracle 11g安装失败,Oracle Database Configuration Assistant 失败
- 谁有:oracle9i 中文视频39cd ,可以转买吗? 急需用
- TNS 无法处理服务名 怎么解决?
- 高分求救!!!
- 在oracle中查看刚执行的语句的一个问题
1、insert into b (a,b,c) select a,b,sum(c) from A group by a,b;
2、update b set id=sequ_aaa.nextval where id is null;
commit;最后和你想要的结果一样!!