Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Returns the size, in bytes, of the input string.
Syntax
string_size(source)
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description | 
|---|---|---|---|
| source | string | 
✔️ | The string for which to return the byte size. | 
Returns
Returns the length, in bytes, of the input string.
Examples
String of letters
print size = string_size("hello")
Output
| size | 
|---|
| 5 | 
String of letters and symbols
print size = string_size("⒦⒰⒮⒯⒪")
Output
| size | 
|---|
| 15 |