Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SQL> CREATE OR REPLACE FUNCTION my_date_format(p_in VARCHAR2)
RETURN VARCHAR2
AS
l_string VARCHAR2(10);
BEGIN
l_string := (24*to_number(substr(p_in,1,2)) + to_number(substr(p_in,4,2)))||substr(p_in,6,6);
RETURN l_string;
END;
/
select * from bartec;
DT
------------
0 10:17:10
1 14:22:40
10 03:50:60
100 10:20:30
select 24*substr(dt,1,instr(dt,' ')-1)
+ substr(dt,instr(dt,' ')+1,2)
|| substr(dt,instr(dt,':'),6) result
from bartec;
RESULT
-----------
10:17:10
38:22:40
243:50:60
2410:20:30