← length operator page · string/length/sc/punctuation_and_space_counted
pandas ✅ · DuckDB ✅
length(SC_1) with SC_1 = Hello, World!, a string with a comma, a space and an exclamation mark.
String length: "Returns the length of a string.", and length("Hello, World!") gives 13.
SC_r is 13, an Integer: Hello is 5, ", " is 2, World is 5 and ! is 1.
SC_r := length(SC_1);
| SC_1 |
|---|
| Hello, World! |
{
"scalars": [
{"name": "SC_1", "type": "String"}
]
}
{
"scalars": [
{"name": "SC_r", "type": "Integer", "value": 13}
]
}