一条不能吧
begin
create GLOBAL TEMPORARY table temp_table as select * from sale where saleid='KAI200304123';
update temp_table set saleid='KAI200304321' where saleid='KAI200304123';
delete from sale whee saleid='KAI200304123';
insert into sale select * from temp_table;
commit;
end;
begin
create GLOBAL TEMPORARY table temp_table as select * from sale where saleid='KAI200304123';
update temp_table set saleid='KAI200304321' where saleid='KAI200304123';
delete from sale whee saleid='KAI200304123';
insert into sale select * from temp_table;
commit;
end;
解决方案 »
- 新手 !! 问个问题 马上给分 谢谢大大
- 求oracle数据库的所有用户的统计上传的记录数的通用存储过程?
- 请问bdump目录中的日志文件中的日期格式是在那里控制的?
- 日期转换
- 怎么将符号单引号插入ORACLE数据库的表中
- 什么情况下用全文检索比用like和instr好?
- 一个ORACLE数据库开发项目,请想做的进来报个价,明天结贴
- 如何分析表的相关性
- Record is locked by another user?
- plsql使用Oracle11g 64位导出dmp文件闪一下 但是没导出来结果,如何解决?
- 急:能否通过SQL语句获和long raw字段的内容字节大小?
- 大哥,快救我!关于表的复制问题,高手请帮忙!!
insert into sale (saleid,cuname,...) select 'KAI200304321',cuname,... from sale where saleid='KAI200304123';
搞定!
COMMIT ;