← trim operator page · string/trim/sc/padded_input_value
pandas ✅ · DuckDB ✅
trim(SC_1) with the input scalar SC_1 = " Hello ", two spaces at each end, quoted in the CSV so that they are kept.
Whitespace removal: "Removes trailing or/and leading whitespace from a string. For example, trim("Hello ") gives "Hello"."
SC_r is Hello, a String: both ends are trimmed.
SC_r := trim(SC_1);
| SC_1 |
|---|
| Hello |
{
"scalars": [
{
"name": "SC_1",
"type": "String"
}
]
}
{
"scalars": [
{"name": "SC_r", "type": "String", "value": "Hello"}
]
}