| 4D v15CAST | ||||||||||||||
| 
 | 
    4D v15
 CAST 
         | |||||||||||||
| CAST (arithmetic_expression AS sql_data_type_name) | ||
The CAST function converts the arithmetic_expression to the sql_data_type_name passed following the AS keyword.
Note: The CAST function is not compatible with "Integer 64 bits" type fields in compiled mode.
This example converts the year of the movie into an Integer type:
SELECT Year_of_Movie, Title, Director, Media, Sold_Tickets
FROM MOVIES
WHERE Year_of_Movie >= CAST('1960' AS INT)
	Product:  4D
	Theme:  Functions
	
        
        
	
	
	
	
	
	
	
	
	
	
	
	4D SQL Reference ( 4D v15)
	
	
	
	
	
 Add a comment
Add a comment