Error log can be used with multi table insert?

I mean I want to insert into multiple tables and errors in the log for each table. Would this be possible?

I tried something like below:

in zzz_party)

name,

party_type,

domicile_ctry_id

) (the values

case

Where rn = null then 14

other name

end,

party_type,

domicile_ctry_id

) Journal of log errors in zzz_err_party ("INS1")

reject limit unlimited

in zzz_party2)

name,

party_type,

domicile_ctry_id

) (the values

name,

case

Where rn = null then 14

of other party_type

end,

domicile_ctry_id

)

Error log of journal zzz_err_party2 ("INS1")

reject limit unlimited

Select name, legal_name.

case

Where rownum = null then 14

of other party_type

end

-t.domicile_ctry_id, rownum rn

advantage t

WHERE name like 'A %' and rownum < = 100

;

And it does not work.

Is there a way to do what I thought without having a separate select insert for each table with its own errors in the log?

Whenever you have an error message the complete error message. "It doesn't work" is not an error message that others can understand.

Looking in your statement, there are some flaws of syntax. I have fixed the. Try this

insert all
into zzz_party
(
  name
, party_type
, domicile_ctry_id
)
values
(
  case when rn=14 then  null else  name end
, party_type
, domicile_ctry_id
)
log errors into zzz_err_party ('ins1') reject limit unlimited
into zzz_party2
(
  name
, party_type
, domicile_ctry_id
)
values
(
  name
, case when rn=14 then null else party_type end
, domicile_ctry_id
)
log errors into zzz_err_party2 ('ins1') reject limit unlimited
select name
     , legal_name
     , case when rownum=14 then null else party_type end party_type
     , t.domicile_ctry_id
     , rownum rn
  from party t
 where name like 'A%'
   and rownum<=100;

Tags: Database

Similar Questions

Maybe you are looking for