I'm in a PL / SQL database and I need to put together an anonymous script to insert into a configuration table (config and value fields). Something like this:
Config: ‘country’ Value: ‘Argentina’
Config: ‘moneysign’ Value: ‘$’
Config: ‘dateformat’ Value: ‘DD/MM/YYYY’
The problem is that I need to validate that the 3 inserts are correct and also, in case of failure, you must identify which failed and leave the base in the consistent state before the start of the anonymous script (as I understand it is done with < em> ROLLBACK or something similar).
How can I do?