I´m kind of new to SQL-Procedures, but I´ve written a procedure which adds a line to my datatable. This works pretty fine, but when i run trough the procedure twice i want to avoid the line being added again into the datatable based on an Oracle-Database. So my question is, how to set the "if already exists"-condition within the case command.
My code looks like that:
...
case number
when 5 then
/* if not exists` <<--- i need something to avoid doubled entrys */
pi_event_line_add(5,'xxx' ....);
end case;
end procedure;