4D v14CURRENT_TIMESTAMP | 
            ||||||||||||||
                    
                        
  | 
                
                    
                         
    4D v14
 
CURRENT_TIMESTAMP 
                                
                                
        
 | 
                |||||||||||||
| 
                     | 
		||
A função CURRENT_TIMESTAMP devolve a data e a hora local atual.
Este exemplo cria uma tabela de faturas e insere a data e as horas atuais na coluna DATAHORA_FACT:
 ARRAY STRING(30;aDate;0)
 Begin SQL
    CREATE TABLE INVOICES
    (DATAHORA_FACT VARCHAR(40));
 
    INSERT INTO INVOICES
    (DATAHORA_FACT)
    VALUES (CURRENT_TIMESTAMP());
 
    SELECT *
    FROM INVOICES
    INTO :aDate;
 End SQL
  `O array aDate devolve a data e a hora de execução do comando INSERT.
	Produto: 4D
	Tema: Funções
	
        
        
	
	Manual de SQL ( 4D v11 SQL Release 4 )
	Manual de SQL ( 4D v14)
	Manual de SQL ( 4D v12.1)
	Manual de SQL ( 4D v13.4)
	Manual de SQL ( 4D v14 R2)
	Manual de SQL ( 4D v14 R3)
	Manual de SQL ( 4D v14 R4)