PL/SQL (MOSC)

MOSC Banner

How to insert record into table on exception

edited Nov 15, 2022 6:29PM in PL/SQL (MOSC) 4 commentsAnswered ✓

Oracle 19c

Oracle Linux 7

I have a block that loops through all the tables in a schema and when it finds a table with a column like SITE_CD_TEST, it tries to run an update.

If the update succeeds, it does a rollback.

If the update fails, I want to store the table name and error into an error table.

Any ideas on how to do this?




/

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center