Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time and Timestamp

Status
Not open for further replies.

shyamal

Programmer
Aug 14, 2000
79
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.
 
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');
 
Although if you're timestamping stuff, SYSDATE will do the job with a lot less typing:

INSERT INTO my_table(timestamp_column,...) VALUES (sysdate,...);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top