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!

Insert date on Oracle

Status
Not open for further replies.

kha0s

Programmer
Jan 15, 2004
9
US
how can I update a dateTime on a Oracle DATE column?

I tryed a lot of different methods, including embedding SQL92 syntax, but I can never seem to do it.

How should I do through JDBC?
 
did you try this?

"update table set date = to_date(?, 'YYYY-MM-DD-HH.MI.SS.000000')"

then do ...

Statement.setTimestamp(your Timestamp object);
Statement.executeUpdate();


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top