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
Renames columns in the output table.
T | project-rename
NewColumnName = ExistingColumnName [,
...]
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
T | string |
✔️ | The input tabular data. |
NewColumnName | string |
✔️ | The new column name. |
ExistingColumnName | string |
✔️ | The name of the existing column to rename. |
A table that has the columns in the same order as in an existing table, with columns renamed.
print a='a', b='b', c='c'
| project-rename new_b=b, new_a=a
Output
new_a | new_b | c |
---|---|---|
a | b | c |