Contents Index LCASE function [String] LENGTH function [String]

ASA SQL Reference
  SQL Functions
    Alphabetical list of functions

LEFT function [String]


Function 

Returns a number of characters from the beginning of a string.

Syntax 

LEFT ( string-expressioninteger-expression )

Parameters 

string-expression    The string.

integer expression    The number of characters to return.

Usage 

If the string contains multi-byte characters, and the proper collation is being used, the number of bytes returned may be greater than the specified number of characters.

Standards and compatibility 
See also 

RIGHT function [String]

International Languages and Character Sets

Example 

The following statement returns the value choco.

SELECT LEFT( 'chocolate', 5 )

Contents Index LCASE function [String] LENGTH function [String]