rename.asciidoc 374 B

1234567891011121314151617
  1. [[esql-rename]]
  2. === `RENAME`
  3. Use `RENAME` to rename a column. If a column with the new name already exists,
  4. it will be replaced by the new column.
  5. [source,esql]
  6. ----
  7. include::{esql-specs}/docs.csv-spec[tag=rename]
  8. ----
  9. Multiple columns can be renamed with a single `RENAME` command:
  10. [source,esql]
  11. ----
  12. include::{esql-specs}/docs.csv-spec[tag=renameMultipleColumns]
  13. ----