2018-06-22 18:40:25 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="basic"]
|
2018-06-20 14:40:13 -04:00
|
|
|
[[sql-syntax-show-functions]]
|
|
|
|
=== SHOW FUNCTIONS
|
|
|
|
|
2020-02-14 11:58:45 -05:00
|
|
|
.Synopsis:
|
2018-06-20 14:40:13 -04:00
|
|
|
[source, sql]
|
|
|
|
----
|
2019-04-22 09:22:41 -04:00
|
|
|
SHOW FUNCTIONS [LIKE pattern?]? <1>
|
2018-06-20 14:40:13 -04:00
|
|
|
----
|
|
|
|
|
|
|
|
<1> SQL match pattern
|
|
|
|
|
2020-02-14 11:58:45 -05:00
|
|
|
*Description*: List all the SQL functions and their type. The `LIKE` clause can be used to restrict the list of names to the given pattern.
|
2018-07-03 09:56:31 -04:00
|
|
|
|
2019-05-31 13:03:41 -04:00
|
|
|
[source, sql]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|
2019-03-25 09:22:59 -04:00
|
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showFunctions]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|
|
|
|
|
|
|
|
The list of functions returned can be customized based on the pattern.
|
|
|
|
|
|
|
|
It can be an exact match:
|
2019-05-31 13:03:41 -04:00
|
|
|
[source, sql]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|
2019-03-25 09:22:59 -04:00
|
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showFunctionsLikeExact]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|
|
|
|
|
|
|
|
A wildcard for exactly one character:
|
2019-05-31 13:03:41 -04:00
|
|
|
[source, sql]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|
2019-03-25 09:22:59 -04:00
|
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showFunctionsLikeChar]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|
|
|
|
|
|
|
|
A wildcard matching zero or more characters:
|
2019-05-31 13:03:41 -04:00
|
|
|
[source, sql]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|
2019-03-25 09:22:59 -04:00
|
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showFunctionsLikeWildcard]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|
|
|
|
|
|
|
|
Or of course, a variation of the above:
|
2019-05-31 13:03:41 -04:00
|
|
|
[source, sql]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|
2019-03-25 09:22:59 -04:00
|
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showFunctionsWithPattern]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|