File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
difference between java.sql.time and java.sql.timestamp in java
Joined: May 12, 2005
Feb 05, 2010 14:09:46
I have a DB table, with a column of type Time.
I'm wondering in the
, should I use
to save this column value?
Which one is better? Thanks.
SCJA, SCJP5.0, SCBCD, SCWCD
Joined: May 26, 2003
Feb 05, 2010 21:04:25
Depends on what you want to save. If just time,
. If date and time, TimeStamp.
The database time type implies just time, but the exact meaning could vary based on the database.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
- it saves me about five hours per week
subject: difference between java.sql.time and java.sql.timestamp in java
select using hibernate - TIME dataype
Retrieving wrong date/time with Timestamp
Sort by java.sql.Timestamp in JTable
why to use Timestamp????
Convert String to sql.Date
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013