INSERT:
insert into myTable (col1) VALUES (to_char(systimestamp, 'dd-mon-yyyy hh.mi.ss.ff4 AM') );
SELECT
select to_timestamp(col1, 'dd-mon-yyyy hh.mi.ss.ff4 AM') from myTable ;
But it is much better to store data directly as a timestamp. Then you can compare the values ββor change them directly.
create table myTable1( col1 timestamp default systimestamp);
source
share