Does INSERT has a REJECTED DATA AS TABLE clause?
markus_zhang
Community Edition User ✭
Hi experts,
When I INSERT from SELECT clause, sometimes the data failed to be inserted (for example Non NULL meets NULL, VARCHAR(20) meets VARCHAR(36), etc.). Is there a way to continue INSERT but put the rejected data into a secondary table as COPY?
Thanks!
Tagged:
0
Answers
Why not just add a WHERE clause to exclude the rows that will fail to INSERT?
Or, you could pipe the data into a COPY command and use the REJECTED DATA TABLE feature to capture the rejections....