Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC( sql.Date and util.Date)

 
Prasath Manohar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I store the System's current Date to Oracle DB.If so can I use both sql.Date and util.Date in the same jdbc program,try to explain me with an example...
 
Scott Selikoff
author
Saloon Keeper
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want the application server's date/time or the database server's date/time, because both are available. Oracle has a sys time command whereas java just requires you create a new date. Depending on how you want to use it, you might consider a database solution that automatically inserts in a timestamp when the record is inserted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic