用存储过程插入数据时,报违法唯一约束错,怎样才能忽略掉它,继续执行后面的操作? 批量倒数据,不想一个个select count(*)判断有没有记录。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 块结构来控制举例:begin for ....loop begin 插入代码; exception when others then null; --do nothing skip to next record end; end loop;exception when others then .....end 创建oracle数据库时,字符集到底怎么选? 送分题 求一个SQL查询语句,在线等。。。。 过程恢复(急) oracle 怎么查询唯一索引 oracle 自动备份 究竟是怎么一回事 plsql索引表 批量绑定问题 SQL 错误: ORA-31000: 资源 'http://xmlbook.com/sample/contact.xsd' 不是 XDB 方案文档 sqlplus如何调用存储过程,谢谢 Oracle的to_date方法,显示未选定行 Oracle日期问题 存储过程中发现Exception,如何知道是什么错?
举例:
begin
for ....loop
begin
插入代码;
exception
when others then
null; --do nothing skip to next record
end;
end loop;
exception
when others then
.....
end