2023-10-17 23:36:14 +08:00
|
|
|
[discrete]
|
2023-06-06 00:38:55 +08:00
|
|
|
[[esql-drop]]
|
|
|
|
=== `DROP`
|
|
|
|
|
2023-06-07 14:35:01 +08:00
|
|
|
Use `DROP` to remove columns:
|
2023-06-06 00:38:55 +08:00
|
|
|
|
|
|
|
[source,esql]
|
|
|
|
----
|
|
|
|
include::{esql-specs}/docs.csv-spec[tag=dropheight]
|
|
|
|
----
|
|
|
|
|
|
|
|
Rather than specify each column by name, you can use wildcards to drop all
|
|
|
|
columns with a name that matches a pattern:
|
|
|
|
|
|
|
|
[source,esql]
|
|
|
|
----
|
|
|
|
include::{esql-specs}/docs.csv-spec[tag=dropheightwithwildcard]
|
|
|
|
----
|