right.asciidoc 595 B

12345678910111213141516171819202122232425262728293031323334
  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. include::types/right.asciidoc[]
  16. *Example*
  17. [source.merge.styled,esql]
  18. ----
  19. include::{esql-specs}/string.csv-spec[tag=right]
  20. ----
  21. [%header.monospaced.styled,format=dsv,separator=|]
  22. |===
  23. include::{esql-specs}/string.csv-spec[tag=right-result]
  24. |===