predicates.asciidoc 587 B

12345678910111213141516171819202122232425
  1. [discrete]
  2. [[esql-predicates]]
  3. === `IS NULL` and `IS NOT NULL` predicates
  4. //tag::body[]
  5. For NULL comparison, use the `IS NULL` and `IS NOT NULL` predicates:
  6. [source.merge.styled,esql]
  7. ----
  8. include::{esql-specs}/null.csv-spec[tag=is-null]
  9. ----
  10. [%header.monospaced.styled,format=dsv,separator=|]
  11. |===
  12. include::{esql-specs}/null.csv-spec[tag=is-null-result]
  13. |===
  14. [source.merge.styled,esql]
  15. ----
  16. include::{esql-specs}/null.csv-spec[tag=is-not-null]
  17. ----
  18. [%header.monospaced.styled,format=dsv,separator=|]
  19. |===
  20. include::{esql-specs}/null.csv-spec[tag=is-not-null-result]
  21. |===
  22. //end::body[]