~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Mark Atwood
  • Date: 2011-09-15 18:02:16 UTC
  • mfrom: (2414.4.1 fix-docs)
  • Revision ID: me@mark.atwood.name-20110915180216-97786ocxt34dc7ne
merge lp:~vjsamuel/drizzle/fix-bug-850898

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Length and Size Functions
2
2
=========================
3
3
 
4
 
.. _bit-lenght-function:
5
 
 
6
 
BIT_LENGTH
7
 
----------
8
 
The BIT_LENGTH(str) function return the String str length in bits. Here are the some example of the BIT_LENGTH(str) function: 
9
 
For example:
10
 
 
11
 
.. code-block:: mysql
12
 
 
13
 
        SELECT BIT_LENGTH('a');
14
 
 
15
 
Returns 8
16
 
 
17
4
.. _char-length-function:
18
5
 
19
6
CHAR_LENGTH
42
29
 
43
30
.. code-block:: mysql
44
31
 
45
 
        select length(_utf8 '€');
 
32
        select length('€');
46
33
 
47
34
Returns 3
48
35