This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dev:sql:functions:lower [2010/07/08 17:08] els |
dev:sql:functions:lower [2016/06/28 22:38] (current) |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ===== Description ===== | ===== Description ===== | ||
| Converts a string to all lower case characters. | Converts a string to all lower case characters. | ||
| + | |||
| + | This function returns the same datatype as the passed parameter. | ||
| ===== Syntax ===== | ===== Syntax ===== | ||
| + | |||
| LOWER( character_expression ) | LOWER( character_expression ) | ||
| - | ===== Example ===== | ||
| - | ==== Example 1 ==== | ||
| - | <code> | ||
| - | select | ||
| - | LOWER (contact) as low | ||
| - | from customers where state = 'co' | ||
| - | low | + | == character_expression == |
| - | ------------------------- | + | |
| - | john doe | + | Required. Any expression that returns a character-class datatype. Examples of expressions are columns, concatenations of columns, literal strings and functions that return a character datatype. |
| - | jane johnson | + | |
| - | jim smith | + | |
| + | ===== Examples ===== | ||
| + | ==== Example: Column ==== | ||
| + | <code> | ||
| + | > select lower(name) nme from individuals; | ||
| + | |||
| + | NME | ||
| + | -------------------------------------------------- | ||
| + | ms. mary lewis | ||
| + | mrs. alice r tolliver | ||
| + | mr. sidney k tolliver | ||
| + | mrs. jennifer j hopkins | ||
| + | mr. charlie hopkins | ||
| + | ms. kimberly blue | ||
| + | kathleen tucker | ||
| </code> | </code> | ||
| + | ====== Additional Resources ====== | ||
| + | |||
| + | See also: | ||
| + | {{page>dev:sql:functions:see_also_string&nofooter&noeditbtn&noheader}} | ||
| + | |||
| + | |||
| {{page>:bottom_add&nofooter&noeditbtn}} | {{page>:bottom_add&nofooter&noeditbtn}} | ||