LCASE Function [String]

Converts all characters in a string to lowercase.

Syntax

LCASEstring-expression )

Parameters

Parameter

Description

string-expression

The string to be converted to lowercase.

Returns

CHAR

NCHAR

LONG VARCHAR

VARCHAR

NVARCHAR

Note: The result data type is a LONG VARCHAR. If you use LCASE in a SELECT INTO statement, you must have an Unstructured Data Analytics Option license or use CAST and set LCASE to the correct data type and size.

Standards and Compatibility

  • SQL—Vendor extension to ISO/ANSI SQL grammar.

  • Sybase—LCASE is not supported in Adaptive Server; you can use LOWER to get the same functionality.

Example

The following statement returns the value “lower case”:

SELECT LCASE( 'LOWER CasE' ) FROM iq_dummy
Related reference
LEFT Function [String]
LOWER Function [String]
REPLACE Function [String]
REVERSE Function [String]
RIGHT Function [String]
UCASE Function [String]
UPPER Function [String]