~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/functions/scalarfunctions.rst

  • Committer: Brian Aker
  • Date: 2010-12-23 22:20:46 UTC
  • mto: (2026.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2027.
  • Revision ID: brian@tangent.org-20101223222046-152kydsd1cyexfme
Update to tests, we just want to look at our own tables, not global.

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
 
.. code-block:: mysql
9
 
 
10
 
        SELECT "function type" ("column_name")
11
 
        FROM "table_name"
12
 
 
13
 
Click on the following scalar functions to learn more:
14
 
 
15
 
    * UCASE() - Converts a field to upper case
16
 
    * LCASE() - Converts a field to lower case
17
 
    * MID() - Extract characters from a text field
18
 
    * LEN() - Returns the length of a text field
19
 
    * ROUND() - Rounds a numeric field to the number of decimals specified
20
 
    * NOW() - Returns the current system date and time
21
 
    * FORMAT() - Formats how a field is to be displayed
22
 
 
23