4D v16

CURRENT_TIMESTAMP

Home

 
4D v16
CURRENT_TIMESTAMP

CURRENT_TIMESTAMP  


 

 

Command CURRENT_TIMESTAMPCURRENT_TIMESTAMP ( )

The CURRENT_TIMESTAMP function returns the current date and local time.

Example  

This example creates a table of invoices and inserts the current date and time into the INV_DATE column:

 ARRAY TEXT(aDate;0)
 Begin SQL
    CREATE TABLE INVOICES
    (INV_DATE VARCHAR(40));
 
    INSERT INTO INVOICES
    (INV_DATE)
    VALUES (CURRENT_TIMESTAMP());
 
    SELECT *
    FROM INVOICES
    INTO :aDate;
 End SQL
  `the aDate array will return the INSERT command execution date and time.



Siehe auch 

CURRENT_DATE
CURRENT_TIME

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Functions

 
GESCHICHTE 

 
ARTIKELVERWENDUNG

4D - SQL Reference ( 4D v16)