1
0
Эх сурвалжийг харах

[DOCS] Clarify the order for RENAME

Abdon Pijpelink 2 жил өмнө
parent
commit
f5c590bc6f

+ 11 - 2
docs/reference/esql/processing-commands/rename.asciidoc

@@ -1,14 +1,23 @@
 [[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.
+Use `RENAME` to rename a column using the following syntax:
+
+[source,esql]
+----
+ RENAME <new-name> = <old-name>
+----
+
+For example:
 
 [source,esql]
 ----
 include::{esql-specs}/docs.csv-spec[tag=rename]
 ----
 
+If a column with the new name already exists, it will be replaced by the new
+column.
+
 Multiple columns can be renamed with a single `RENAME` command:
 
 [source,esql]