Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
更新しました 2024/12/20
Send us feedback
rtrim
Applies to: Databricks SQL Databricks Runtime
Returns str with trailing characters removed.
str
rtrim( [trimStr ,] str)
trimStr: An optional STRING expression with characters to be trimmed. The default is a space character.
trimStr
STRING
str: A STRING expression to be trimmed.
A STRING.
The function removes any trailing characters within trimStr from str.
> SELECT rtrim('SparkSQL ') || '+'; SparkSQL+ > SELECT rtrim('ab', 'SparkSQLabcaaba'); SparkSQLabc > SELECT rtrim('AB', 'SparkSQLabcaaba' COLLATE UTF8_BINARY); SparkSQLabcaaba > SELECT rtrim('AB', 'SparkSQLabcaaba' COLLATE UTF8_LCASE); SparkSQL
rpad function
lpad function
ltrim function
trim function