[[esql-source-commands]]
== ESQL source commands
++++
Source commands
++++
:keywords: {es}, ESQL, {es} query language, source commands
:description: An ESQL source command produces a table, typically with data from {es}.
An ESQL source command produces a table, typically with data from {es}.
image::images/esql/source-command.svg[A source command producing a table from {es},align="center"]
ESQL supports these source commands:
* <>
* <>
* <>
[[esql-from]]
=== `FROM`
The `FROM` source command returns a table with up to 10,000 documents from a
data stream, index, or alias. Each row in the resulting table represents a
document. Each column corresponds to a field, and can be accessed by the name
of that field.
[source,esql]
----
FROM employees
----
You can use <> to refer to indices, aliases
and data streams. This can be useful for time series data, for example to access
today's index:
[source,esql]
----
FROM
----
Use comma-separated lists or wildcards to query multiple data streams, indices,
or aliases:
[source,esql]
----
FROM employees-00001,employees-*
----
[[esql-row]]
=== `ROW`
The `ROW` source command produces a row with one or more columns with values
that you specify. This can be useful for testing.
[source,esql]
----
ROW a = 1, b = "two", c = null
----
Use angle brackets to create multi-value columns:
[source,esql]
----
ROW a = [2, 1]
----
`ROW` supports the use of <>:
[source,esql]
----
ROW a = ROUND(1.23, 0)
----
[[esql-show]]
=== `SHOW - `
The `SHOW
- ` source command returns information about the deployment and
its capabilities:
* Use `SHOW INFO` to return the deployment's version, build date and hash.
* Use `SHOW FUNCTIONS` to return a list of all supported functions and a
synopsis of each function.