Skip to content
Rene Saarsoo edited this page Aug 16, 2022 · 38 revisions

All dialects support the following standard operators:

The standard also defines operators that aren't supported a lot in actual implementations:

Below only additional non-standard operators are listed (the uncommon ones (::, ->, ||, ..) are assumed to be unsupported unless mentioned otherwise):

  • Bitwise: &, |, ^, ~, <<, >>
  • String/Array concatenation: ||
  • Arithmetic: %, MOD, DIV
  • Assignment: :=
  • Bitwise: &, |, ^, ~, >>, <<
  • Comparison: <=> (NULL-safe equal operator)
  • Logical: &&, ||, XOR, !
  • Arithmetic: %, MOD, DIV
  • Assignment: :=
  • Bitwise: &, |, ^, ~, >>, <<
  • Comparison: <=> (NULL-safe equal operator)
  • JSON: ->, ->>
  • Logical: &&, ||, XOR, !

SingleStoreDB:

  • Arithmetic: %
  • Bitwise: ~, &, |, <<, >>
  • Comparison: ==
  • JSON: ->, ->>
  • String concatenation: ||

Notes:

  1. Tested SingleStoreDB boolean operators manually. Found no docs for these.
  2. SingleStoreDB only clearly documents the use of = operator for assignment, but testing shows that := works as well (the docs also contain a lonely example that uses the := syntax).
Clone this wiki locally