| 
                    
 This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com  | 
            ||||||||||||||
                 
                
  | 
                
					
                    
                         
    4D v19
 
select_item 
                                
                                
        
 | 
                |||||||||||||
| 
                     
  | 
		||
A select_item specifies one or more items to be included in the results. A column is generated for every select_item passed. Each select_item consists of an arithmetic_expression. You can also pass the optional AS keyword to specify the optional sql_string or sql_name to be given to the column. (Passing the optional sql_string or sql_name without the AS keyword has the same effect).
Here is an example which creates a column named Movie_Year containing movies released in the year 2000 or more recently:
 ARRAY INTEGER(aMovieYear;0)
 Begin SQL
    SELECT Year_of_Movie AS Movie_Year
    FROM MOVIES
    WHERE Movie_Year >= 2000
    ORDER BY 1
    INTO :aMovieYear;
 End SQL
	Product:  4D
	Theme:  Syntax rules
	
        
        
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D SQL Reference ( 4D v19)
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
Add a comment