starts_with.asciidoc 680 B

123456789101112131415161718192021222324252627282930313233343536
  1. [discrete]
  2. [[esql-starts_with]]
  3. === `STARTS_WITH`
  4. *Syntax*
  5. [.text-center]
  6. image::esql/functions/signature/starts_with.svg[Embedded,opts=inline]
  7. *Parameters*
  8. `str`::
  9. String expression. If `null`, the function returns `null`.
  10. `prefix`::
  11. String expression. If `null`, the function returns `null`.
  12. *Description*
  13. Returns a boolean that indicates whether a keyword string starts with another
  14. string.
  15. *Supported types*
  16. include::types/starts_with.asciidoc[]
  17. *Example*
  18. [source.merge.styled,esql]
  19. ----
  20. include::{esql-specs}/docs.csv-spec[tag=startsWith]
  21. ----
  22. [%header.monospaced.styled,format=dsv,separator=|]
  23. |===
  24. include::{esql-specs}/docs.csv-spec[tag=startsWith-result]
  25. |===