Sep 26, 2001 #1 shyamal Programmer Joined Aug 14, 2000 Messages 79 Location US As oracle 8i only has a date datatype for conversions such as SQL how does one input time and timestamp into oracle? Thanks in advance.
As oracle 8i only has a date datatype for conversions such as SQL how does one input time and timestamp into oracle? Thanks in advance.
Sep 26, 2001 #2 carp MIS Joined Sep 16, 1999 Messages 2,622 Location US By using the DATE datatype: INSERT INTO my_time_table VALUES to_date('25 December 2001 23:18:15','DD Month YYYY HH24:MI:SS'); Upvote 0 Downvote
By using the DATE datatype: INSERT INTO my_time_table VALUES to_date('25 December 2001 23:18:15','DD Month YYYY HH24:MI:SS');
Sep 26, 2001 #3 carp MIS Joined Sep 16, 1999 Messages 2,622 Location US Although if you're timestamping stuff, SYSDATE will do the job with a lot less typing: INSERT INTO my_table(timestamp_column,...) VALUES (sysdate,...); Upvote 0 Downvote
Although if you're timestamping stuff, SYSDATE will do the job with a lot less typing: INSERT INTO my_table(timestamp_column,...) VALUES (sysdate,...);