Greenplum Oracle 兼容性之 - LOG ERRORS INTO

标签

PostgreSQL , Oracle , Greenplum , LOG ERRORS INTO

背景

Oracle支持DML的log errors,是一个很赞的功能。

https://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_errlog.htm#CEGEJAAJ

https://oracle-base.com/articles/10g/dml-error-logging-10gr2

支持insert,update,delete,merge的错误日志记录,可以跳过错误的行

INSERT INTO dest  
SELECT *  
FROM   source  
LOG ERRORS INTO err$_dest ('INSERT') REJECT LIMIT UNLIMITED
点赞