length.asciidoc 440 B

123456789101112131415161718192021222324252627282930
  1. [discrete]
  2. [[esql-length]]
  3. === `LENGTH`
  4. *Syntax*
  5. [source,esql]
  6. ----
  7. LENGTH(str)
  8. ----
  9. *Parameters*
  10. `str`::
  11. String expression. If `null`, the function returns `null`.
  12. *Description*
  13. Returns the character length of a string.
  14. *Example*
  15. [source.merge.styled,esql]
  16. ----
  17. include::{esql-specs}/eval.csv-spec[tag=length]
  18. ----
  19. [%header.monospaced.styled,format=dsv,separator=|]
  20. |===
  21. include::{esql-specs}/eval.csv-spec[tag=length-result]
  22. |===