1234567891011121314151617 |
- [[esql-rename]]
- === `RENAME`
- Use `RENAME` to rename a column. If a column with the new name already exists,
- it will be replaced by the new column.
- [source,esql]
- ----
- include::{esql-specs}/docs.csv-spec[tag=rename]
- ----
- Multiple columns can be renamed with a single `RENAME` command:
- [source,esql]
- ----
- include::{esql-specs}/docs.csv-spec[tag=renameMultipleColumns]
- ----
|