I’m trying to debug a stored procedure (Oracle). I want to print some variables.
I don’t know what the command to print is (or where to find it). Can anyone tell me what it is?
Thanks
EDIT:
This is my trigger:
create or replace
procedure bns_saa_confs_update_state (
theID in varchar2
)
AS
begin
UPDATE BNS_SAA_CONFIRMATIONS SET SentToWssStatus='T' WHERE ID=theID;
commit;
end;
I want to print theID
Use the
dbms_output.put_line()function:Make sure you have
set serveroutput onif running from SQLPlus, or set output on if running from an IDE. Some developers will create a wrapper function to simplify debugging.