Returns the value (1 or 0) of a specified bit in a bit array.
GET_BIT( bit-expression, position )
bit-expression The bit array containing the bit.
position The position of the bit for which to return the status.
BIT
The positions in the array are counted from the left side, starting at 1.
If position exceeds the length of the array, 0 (false) is returned.
SQL/2003 Vendor extension.
The following statement returns the value 1:
SELECT GET_BIT( '00110011' , 4 ); |
The following statement returns the value 0:
SELECT GET_BIT( '00110011' , 5 ); |
Envoyer votre avis sur cette page par email. | Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |