A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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:
subject: difference between java.sql.time and java.sql.timestamp in java
why to use Timestamp????
select using hibernate - TIME dataype
Convert String to sql.Date
Sort by java.sql.Timestamp in JTable
Retrieving wrong date/time with Timestamp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013