Loading
Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.4
  Go To Table Of Contents
Contents
 Search
Other Searches
 PDF
PDF
Comments
Comments


CAST

Use CAST to convert a value to a specific database type.


Usage

The CAST function is database independent, but requires database support.


Examples

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

Example 3-1 Using CAST EQL

CAST(e.salary NUMERIC(10,2))


See Also

For more information, see:

Comments powered by Disqus