Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You use <a href="http://java.sun.com/javase/6/docs/api/java/sql/Date.html" rel="noreferrer">java.sql.Date</a>. A constructor and some methods are deprecated. The class isn't. Confused by this versus, say, <a href="http://java.sun.com/javase/6/docs/api/java/util/Date.html" rel="noreferrer">java.util.Date</a> or <a href="http://java.sun.com/javase/6/docs/api/java/util/Calendar.html" rel="noreferrer">java.util.Calendar</a>? Look at <a href="http://www.onjava.com/pub/a/onjava/2003/06/05/java_calendar.html" rel="noreferrer">Making Sense of Java's Dates</a>.</p> <p>There are three JDBC date/time types:</p> <ul> <li><a href="http://java.sun.com/javase/6/docs/api/java/sql/Types.html#DATE" rel="noreferrer">DATE</a>: granularity of days, use <a href="http://java.sun.com/javase/6/docs/api/java/sql/Date.html" rel="noreferrer">java.sql.Date</a>;</li> <li><a href="http://java.sun.com/javase/6/docs/api/java/sql/Timestamp.html" rel="noreferrer">TIMESTAMP</a>: date and time, use <a href="http://java.sun.com/javase/6/docs/api/java/sql/Timestamp.html" rel="noreferrer">java.sql.Timestamp</a>;</li> <li><a href="http://java.sun.com/javase/6/docs/api/java/sql/Types.html#TIME" rel="noreferrer">TIME</a>, just the time with no date, use <a href="http://java.sun.com/javase/6/docs/api/java/sql/Time.html" rel="noreferrer">java.sql.Time</a>.</li> </ul> <p>The confusion probably arises from the fact that java.sql.Date extends java.util.Date and thus inherits its deprecated methods.</p> <p>Just use the right type for the type of your column.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload