~ubuntu-branches/ubuntu/natty/drizzle/natty

« back to all changes in this revision

Viewing changes to docs/functions/scalarfunctions.rst

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2011-02-02 13:42:46 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20110202134246-rj4qc6zafvdd7sq2
Tags: 2011.02.09-0ubuntu1
* New upstream release.
* Updated the -Werror patch.
* Updated copyright file.
* Removed get-orig-source target which didn't work right.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Scalar functions
 
2
================
 
3
 
 
4
*SQL scalar functions are based on the input value, and return a single value.*
 
5
 
 
6
General syntax for scalar functions is: ::
 
7
 
 
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
 
 
21