Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Problem with TO_DATE(TO_CHAR(sysdate,'hh24:mi:ss'),'hh24:mi:ss')
Hi There,
I am developing a procedure that require to increase the counter by 1
if any is inserted into
a table after 1 PM. For this i create a column cutoff in a temp table
and wrote a condition
like this
IF ( (TO_DATE(TO_CHAR(CutOff,'hh24:mi:ss'),'hh24:mi:ss')
< TO_DATE(TO_CHAR(Sysdate,'hh24:mi:ss'),'hh24:mi:ss') ) ) THEN tTransactionDate := tTransactionDate + 1; End If ;
This condition was working fine...but yesterday one user did a
transaction ar exactly 12 midnight,
ans system didn't increate the counter.
Can you tell me why system didn't increase the txn Or suggest some
better solution?
Thanks,
Pan
Received on Fri Jan 12 2007 - 02:53:16 CST