Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Outputs a single row with one or more scalar expression results as columns.
print
[ColumnName =
] ScalarExpression [,
...]
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
ColumnName | string |
The name to assign to the output column. | |
ScalarExpression | string |
✔️ | The expression to evaluate. |
A table with one or more columns and a single row. Each column returns the corresponding value of the evaluated ScalarExpression.
The following example outputs a row with two columns. One column contains the sum of a series of numbers and the other column contains the value of the variable, x
.
print 0 + 1 + 2 + 3 + 4 + 5, x = "Wow!"
Output
print_0 | x |
---|---|
15 | Wow! |
The following example outputs the results of the strcat()
function as a concatenated string.
print banner=strcat("Hello", ", ", "World!")
Output
banner |
---|
Hello, World! |