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
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
author & internet detective
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????
Sort by java.sql.Timestamp in JTable
select using hibernate - TIME dataype
Retrieving wrong date/time with Timestamp
Convert String to sql.Date
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014