right.asciidoc 614 B

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