LTRIM() removes characters from the left side of a string. It iteratively removes any leftmost character that matches any character in the specified list. If no list is provided, LTRIM() removes spaces from the left side. This function is useful for string cleaning, data normalization, and text formatting. LTRIM() is similar to TRIM() (which removes from both sides) and RTRIM() (which removes from the right side).
LTRIM(string [, list])
LTRIM() returns a character string
LTRIM(" APPLES ") = "APPLES " (removes leading spaces)
LTRIM("APPLES", "A") = "PPLES" (removes single character)
LTRIM("APPLES", "AP") = "LES" (removes multiple characters)
LTRIM("APPLES", "P") = "APPLES" (no matching leftmost character)
LTRIM("APPLES", "PA") = "LES" (removes characters in any order)
LTRIM("APPLES", "APS") = "LES" (removes all matching characters)
LTRIM("ABRACADABRA", "ABRC") = "DABRA" (complex pattern removal)
LTRIM("ABRACADABRA", "ABRCD") = "" (removes all characters)
LTRIM("", "ABC") = "" (empty string)
LTRIM(NULL, "ABC") = NULL (NULL input)