EXTRACT

4D - Documentation   Français   English   German   Japanese   4D SQL Reference, Table of Contents   4D SQL Reference, Index   Back   Previous   Next

version 11


EXTRACT ({YEAR | MONTH | DAY | HOUR | MINUTE | SECOND | MILLISECOND} FROM arithmetic_expression)

Description

The EXTRACT function returns the specified part which it extracts from the arithmetic_expression. The arithmetic_expression passed should be of the Timestamp type.

Example

This example returns all the invoice numbers from the month of January:

   SELECT INVOICE_NO
     FROM INVOICES
    WHERE EXTRACT(MONTH(INVOICE_DATE)) = 1;

4D - Documentation   Français   English   German   Japanese   4D SQL Reference, Table of Contents   4D SQL Reference, Index   Back   Previous   Next