I want to add time with minutes and seconds in a log table, I was using SYSDATE but it doesn't store minutes and seconds:
SYS_DATE TIMESTAMP;
SYS_DATE :=TO_DATE(''||SYSTIMESTAMP()||'','DD-MM-YYYY HH24:MI:SS');
INSERT INTO _LOGTB(PROCESS_NAME,TYPE,START_DATE,END_DATE,NUM_OF_COUNT) VALUES
(''PROCEDUREEEE'',''INSERT'','''||SYS_DATE||''','''','132111')';
commit;
I get this error:
ORA-01830: date format picture ends before converting entire input string
The output if I use sysdate()