This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20
LEFT

LEFT  


 

 

Command LEFLEFT (arithmetic_expression, arithmetic_expression)

The LEFT function returns the leftmost part of the arithmetic_expression passed. The second arithmetic_expression indicates the number of leftmost characters to return as extracted from the first arithmetic_expression indicated.

Example  

This example returns the first names and first two letters of the last names from the PEOPLE table:

SELECT FirstName, LEFT(LastName, 2)
FROM PEOPLE;



See also 

RIGHT

 
PROPERTIES 

Product: 4D
Theme: Functions

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D SQL Reference ( 4D v20)