Apr 1, 2002 #1 kha0s Programmer Joined Jan 15, 2004 Messages 9 Location 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?
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?
Apr 1, 2002 #2 JeffShelley Programmer Joined Aug 29, 2001 Messages 3 Location US 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(); Upvote 0 Downvote
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();