Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I don't know how to verify if a parameter exists in the funcion or procedure

User_2FQDIJun 9 2022

Design a table named "customs agencies" with the following fields: name, address, patent number, id_ customs agent. Where customs agent is another table with name and seniority.
Create a function or procedure that allows inserting new agencies and being able to edit an agency giving the ID of the customs agency.
I don't know how to do this: If id exists in parameter we do an update, else we insert new agencies.

Comments
Post Details
Added on Jun 9 2022
4 comments
407 views