• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oracle and jsp

 
Gary Guion
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What format of date do I need to use to insert the date in Oracle 8.1.6. When I use java.util.Date() the insert does not occur? When I try to hardcode it in I still cannot get it in the right format. Any ideas?
Thanks,
Gary
 
Daniel Dunleavy
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
During Oracle installation a default date format is selected, and if you pass it that way your ok.
otherwise you tell oracle what format its in
insert into itable (col1, col2, coldate)
values( 1, 'aaaa', to_date('20010105231001','YYYYMMDDHH24MISS')
Dan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic