Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.5
  Go To Table Of Contents
 Search
 PDFComments
Comments


EXTRACT

Use EXTRACT to retrieve the date portion of a date/time value.


Usage

The EXTRACT function is database independent, but requires database support


Examples

Example 3-5 shows how to use this JPQL extension.

Example 3-5 Using EXTRACT EQL

EXTRACT(YEAR, e.startDate)


See Also

For more information, see: