BAND Function

Returns the bitwise logical AND of two arguments.

Category: Bitwise Logical Operations
Returned data type: DOUBLE

Syntax

Arguments

expression-1, expression-2

specifies any valid expression that evaluates to a numeric value.

Range between 0 and (232)–1 inclusive
Data type DOUBLE
See <sql-expression>
FedSQL Expressions

Example

The following statements illustrate the BAND function:
Statements
Results
select band(9,11);
9
select band(15,5);
5
Last updated: February 23, 2017