Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • BIT_LENGTH function mysql

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 237
    Comment on it

    BIT_LENGTH(str)

    BIT_LENGTH function returns the length of the string str in bits.

    for example, the bit length of text is 32 and hello is 40.

    mysql> SELECT BIT_LENGTH('text');
    +--------------------+
    | BIT_LENGTH('text') |
    +--------------------+
    |                 32 |
    +--------------------+
    1 row in set (0.00 sec)
    
    mysql> SELECT BIT_LENGTH('hello');
    +---------------------+
    | BIT_LENGTH('hello') |
    +---------------------+
    |                  40 |
    +---------------------+
    1 row in set (0.00 sec)
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: