NOTBITS()

Overview

Returns a bitwise negated value.

USAGE

NOTBITS(value)

Argument Name

Description

value

The value to bitwise negate

DETAILS

NOTBITS() is a bitwise function that returns the negated value where each input bit is changed to its opposite digit.

A NULL is returned if the argument is NULL.

The function call NOTBITS(x) behaves in exactly the same manner as the expression ~x.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT HEX(NOTBITS(7)), HEX(NOTBITS(32767)), HEX(NOTBITS(0));
+------------------+---------------------+------------------+
| HEX(NOTBITS(7))  | HEX(NOTBITS(32767)) | HEX(NOTBITS(0))  |
+------------------+---------------------+------------------+
| FFFFFFFFFFFFFFF8 | FFFFFFFFFFFF8000    | FFFFFFFFFFFFFFFF |
+------------------+---------------------+------------------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES