starts_with.asciidoc 661 B

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