~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/functions/string/length.rst

new string function docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Length and Size Functions
 
2
=========================
 
3
 
 
4
BIT_LENGTH
 
5
----------
 
6

The BIT_LENGTH(str) function return the String str length in bits. Here are the some example of the BIT_LENGTH(str) function:
     
 
7
For example: ::
 
8
 
 
9
        SELECT BIT_LENGTH('a');
 
10
 
 
11
Returns 8
 
12
 
 
13
CHAR_LENGTH()             Return number of characters in argument
 
14
 
 
15
 
 
16
LENGTH()                  Return the length of a string in bytes
 
17
 
 
18
 
 
19
OCTET_LENGTH()            A synonym for LENGTH()