你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
print operator
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Outputs a single row with one or more scalar expression results as columns.
Syntax
print
[ColumnName =
] ScalarExpression [',' ...]
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
ColumnName | string |
The name to assign to the output column. | |
ScalarExpression | string |
✔️ | The expression to evaluate. |
Returns
A table with one or more columns and a single row. Each column returns the corresponding value of the evaluated ScalarExpression.
Examples
print 0 + 1 + 2 + 3 + 4 + 5, x = "Wow!"
Output
print_0 | x |
---|---|
15 | Wow! |
print banner=strcat("Hello", ", ", "World!")
Output
banner |
---|
Hello, World! |