show-functions.asciidoc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[sql-syntax-show-functions]]
  4. === SHOW FUNCTIONS
  5. beta[]
  6. .Synopsis
  7. [source, sql]
  8. ----
  9. SHOW FUNCTIONS [ LIKE pattern<1>? ]?
  10. ----
  11. <1> SQL match pattern
  12. .Description
  13. List all the SQL functions and their type. The `LIKE` clause can be used to restrict the list of names to the given pattern.
  14. ["source","sql",subs="attributes,callouts,macros"]
  15. ----
  16. include-tagged::{sql-specs}/docs.csv-spec[showFunctions]
  17. ----
  18. The list of functions returned can be customized based on the pattern.
  19. It can be an exact match:
  20. ["source","sql",subs="attributes,callouts,macros"]
  21. ----
  22. include-tagged::{sql-specs}/docs.csv-spec[showFunctionsLikeExact]
  23. ----
  24. A wildcard for exactly one character:
  25. ["source","sql",subs="attributes,callouts,macros"]
  26. ----
  27. include-tagged::{sql-specs}/docs.csv-spec[showFunctionsLikeChar]
  28. ----
  29. A wildcard matching zero or more characters:
  30. ["source","sql",subs="attributes,callouts,macros"]
  31. ----
  32. include-tagged::{sql-specs}/docs.csv-spec[showFunctionsLikeWildcard]
  33. ----
  34. Or of course, a variation of the above:
  35. ["source","sql",subs="attributes,callouts,macros"]
  36. ----
  37. include-tagged::{sql-specs}/docs.csv-spec[showFunctionsWithPattern]
  38. ----