This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:sql:functions:upper [2009/12/05 00:50] tdo created |
dev:sql:functions:upper [2016/06/28 22:38] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{page>:top_add&nofooter&noeditbtn}} | {{page>:top_add&nofooter&noeditbtn}} | ||
- | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
- | ====== Omnidex SQL Function: UPPER ====== | ||
{{page>:sql_bar&nofooter&noeditbtn}} | {{page>:sql_bar&nofooter&noeditbtn}} | ||
+ | ====== Omnidex SQL Function: UPPER ====== | ||
===== Description ===== | ===== Description ===== | ||
Converts a string to all upper case characters. | Converts a string to all upper case characters. | ||
+ | |||
+ | This function returns the same datatype as the passed parameter. | ||
+ | |||
===== Syntax ===== | ===== Syntax ===== | ||
- | UPPER(string) | ||
- | == string == | + | UPPER( character_expression ) |
+ | |||
+ | == character_expression == | ||
+ | |||
+ | 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. | ||
+ | |||
+ | |||
+ | ===== Examples ===== | ||
+ | ==== Example: Column ==== | ||
+ | <code> | ||
+ | > select upper(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 | ||
- | Required. The character string that is to be upshifted. | ||
- | ===== Example ===== | ||
- | ==== Example 1 ==== | ||
- | <code SQL> | ||
- | select | ||
- | LOWER (contact) as low, UPPER(contact) as up | ||
- | from customers where state = 'co' | ||
</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}} |