GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltdb.com — BITNOT() Using VoltDBBITNOT()BITNOT() — Returns the mask reversing every bit of a BIGINT value. SynopsisBITNOT( value ) DescriptionThe BITNOT() function returns the mask reversing every bit in a BIGINT value. In other words, it performs a bitwise NOT operation, returning the complement of the argument. The result is returned as a new BIGINT value — the argument to the function is not modified. The left-most bit of an integer number is the sign bit, but has no special meaning for bitwise operations. However, The left-most bit set to 1 followed by all zeros is reserved as the NULL value. If you use a NULL value as an argument, you will receive a NULL response. But in all other circumstances (using non-NULL BIGINT arguments), the bitwise functions should never return a NULL result. Consequently any bitwise operation that would result in only the left-most bit being set, will generate an error at runtime. ExamplesThe following example writes a value into a BIGINT column of the table bits and then returns the bitwise NOT of the column: $ sqlcmd 1> create table bits (a bigint); 2> insert into bits (a) values (1234567890); 3> select bitnot(a) from bits; C1 ------------ -1234567891 |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |