ltrim
Functie
Van toepassing op: Databricks Databricks Runtime
Retourneert met voorlooptekens str
binnen trimStr
verwijderd.
Syntaxis
ltrim( [trimstr ,] str)
Argumenten
trimstr
: Een optionele TEKENREEKS-expressie met de tekenreeks die moet worden ingekort.str
: een TEKENREEKSexpressie waaruit u wilt knippen.
Retourneert
EEN TEKENREEKS.
De standaardwaarde voor trimStr
is één spatie.
Met de functie worden alle voorlooptekens in trimStr
verwijderd uit str
.
Voorbeelden
> SELECT '+' || ltrim(' SparkSQL ') || '+';
+SparkSQL +
> SELECT '+' || ltrim('abc', 'acbabSparkSQL ') || '+';
+SparkSQL +