elasticsearch/docs/reference/esql/processing-commands/rename.asciidoc
2023-06-05 18:38:55 +02:00

17 lines
374 B
Text

[[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]
----