mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 23:57:20 -04:00
17 lines
374 B
Text
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]
|
|
----
|