• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: DB2: How to ignore exceptions?

Resolved: DB2: How to ignore exceptions?

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

i need to add a merge into my batch, but in case of errors it will get ignored and the batch will just keep going. I know that if i do something like this:
it will work, but right now i need a larger command, not that single liner and also i never understood the EXECUTE IMMEDIATE.
In Oracle i guess i could just do
and ignore even any kind of exception, is there anything similar in db2?

Answer:

A handler declared in a BEGIN END block as below swallows all exceptions in the same block:
dbfiddle link.

If you have better answer, please add a comment about this, thank you!

db2 sql
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Openlayers: Update clusters depending on filter (geometryFunction)

24/03/2023

Resolved: Getting ‘502 Bad Gateway’ while deploying Springboot app in EKS

24/03/2023

Resolved: Why is NGINX’s $request_uri empty?

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.