~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/scalarfunctions.rst

  • Committer: Lee Bieber
  • Date: 2011-01-15 04:24:34 UTC
  • mfrom: (2086.1.3 build)
  • Revision ID: kalebral@gmail.com-20110115042434-f4g9hd4vu3rw6bfx
Merge Stewart - some documentation clean up
Merge Patrick - fix bug 693130: Tests depending on archive engine should be skipped if archive isn't enabled
Merge Patrick - fix bug 697292: The have_valgrind include file in the test has the opposite effect

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Scalar functions
2
 
================
3
 
 
 
2
================
 
3
 
4
4
*SQL scalar functions are based on the input value, and return a single value.*
5
5
 
6
6
General syntax for scalar functions is: ::
7
7
 
8
8
        SELECT "function type" ("column_name")
9
 
        FROM "table_name"
10
 
 
11
 
Click on the following scalar functions to learn more:
12
 
 
13
 
    * UCASE() - Converts a field to upper case
14
 
    * LCASE() - Converts a field to lower case
15
 
    * MID() - Extract characters from a text field
16
 
    * LEN() - Returns the length of a text field
17
 
    * ROUND() - Rounds a numeric field to the number of decimals specified
18
 
    * NOW() - Returns the current system date and time
19
 
    * FORMAT() - Formats how a field is to be displayed
20
 
 
 
9
        FROM "table_name"
 
10
 
 
11
Click on the following scalar functions to learn more:
 
12
 
 
13
    * UCASE() - Converts a field to upper case
 
14
    * LCASE() - Converts a field to lower case
 
15
    * MID() - Extract characters from a text field
 
16
    * LEN() - Returns the length of a text field
 
17
    * ROUND() - Rounds a numeric field to the number of decimals specified
 
18
    * NOW() - Returns the current system date and time
 
19
    * FORMAT() - Formats how a field is to be displayed
 
20
 
21
21