left.asciidoc 607 B

123456789101112131415161718192021222324252627282930313233343536
  1. [discrete]
  2. [[esql-left]]
  3. === `LEFT`
  4. *Syntax*
  5. [.text-center]
  6. image::esql/functions/signature/left.svg[Embedded,opts=inline]
  7. *Parameters*
  8. `str`::
  9. The string from which to return a substring.
  10. `length`::
  11. The number of characters to return.
  12. *Description*
  13. Returns the substring that extracts 'length' chars from 'str' starting
  14. from the left.
  15. *Supported types*
  16. include::types/left.asciidoc[]
  17. *Example*
  18. [source.merge.styled,esql]
  19. ----
  20. include::{esql-specs}/string.csv-spec[tag=left]
  21. ----
  22. [%header.monospaced.styled,format=dsv,separator=|]
  23. |===
  24. include::{esql-specs}/string.csv-spec[tag=left-result]
  25. |===