ORA-01722: invalid number in an Oracle query that tries to pick up the scheduled signals in the next 30 seconds
I have a so-called signal_table in Oracle 11G which has the columns below: signal_type VarChar(2) signal_time VarChar(2) signal_time has a format HH24:MI:SS (e.g. "15:35:30"), which means that an application fires this type of signal at 15:35:30 every day. Now, I am trying to write a query which lists up all the signals that are due to be fired in 30 seconds from now. I tried something like select signal_type, signal_time, from signal_table where to_number(to_char(substr(signal_time,1,2)))*3600 + to_number(to_char(substr(signal_time,4,2)))*60 + to_number(to_char(substr(signal_time,7,2))) - to_
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.