Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
配列でビットが 1 (TRUE) に設定された数値のカウントを返します。
COUNT_SET_BITS( bit-expression )
bit-expression 設定されたビットを決定するビット配列。
UNSIGNED INT
bit-expression が NULL の場合、NULL を返します。
SQL/2008 ベンダー拡張。
次の文は、値 4 を返します。
SELECT COUNT_SET_BITS( '00110011' );
次の文は、値 12 を返します。
SELECT COUNT_SET_BITS( '0011001111111111' );