This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:sql:functions:home [2010/07/08 21:14] els |
dev:sql:functions:home [2011/03/31 14:50] doc |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{page>:top_add&nofooter&noeditbtn}} | {{page>:top_add&nofooter&noeditbtn}} | ||
- | ====== Omnidex SQL: Functions ====== | + | ====== Omnidex SQL Functions Quick Reference ====== |
+ | |||
+ | (This will be converted to a three-column once the underlying pages are written) | ||
+ | |||
+ | |< 100% 100% >| | ||
^ Omnidex SQL Functions ^^^ | ^ Omnidex SQL Functions ^^^ | ||
|**String Functions** ||| | |**String Functions** ||| | ||
Line 33: | Line 37: | ||
|[[dev:sql:functions:case|CASE]] ||| | |[[dev:sql:functions:case|CASE]] ||| | ||
|[[dev:sql:functions:coalesce|COALESCE]] ||| | |[[dev:sql:functions:coalesce|COALESCE]] ||| | ||
- | |[[dev:sql:functions:ifnull|IFNULL]] ||| | ||
|[[dev:sql:functions:nullif|NULLIF]] ||| | |[[dev:sql:functions:nullif|NULLIF]] ||| | ||
+ | |[[dev:sql:functions:ifnull|$IFNULL]] ||| | ||
| ||| | | ||| | ||
|**Utility and Conversion Functions** ||| | |**Utility and Conversion Functions** ||| | ||
Line 42: | Line 46: | ||
|[[dev:sql:functions:data_length|$DATA_LENGTH]] ||| | |[[dev:sql:functions:data_length|$DATA_LENGTH]] ||| | ||
|[[dev:sql:functions:distance|$DISTANCE]] ||| | |[[dev:sql:functions:distance|$DISTANCE]] ||| | ||
- | |[[dev:sql:functions:external|$EXTERNAL]] ||| | ||
| ||| | | ||| | ||
|**Variables** ||| | |**Variables** ||| | ||
Line 77: | Line 80: | ||
|[[dev:sql:functions:to_number|TO_NUMBER]] ||| | |[[dev:sql:functions:to_number|TO_NUMBER]] ||| | ||
| ||| | | ||| | ||
- | |----------------------------------------------------------|---------------------------------------------------------|----------------------------------------------------------| | ||
- | ===== String Functions ===== | + | ====== Omnidex SQL Function Descriptions ====== |
+ | |< 100% 20% 20% 60% >| | ||
^Function ^Parameters ^Description ^ | ^Function ^Parameters ^Description ^ | ||
+ | | ||| | ||
+ | ^**String Functions** ^^^ | ||
| [[dev:sql:functions:character_length | CHAR[ACTER]_LENGTH]] |(char_expr) | Return the number of characters in a character expression. | | | [[dev:sql:functions:character_length | CHAR[ACTER]_LENGTH]] |(char_expr) | Return the number of characters in a character expression. | | ||
| [[dev:sql:functions:lower | LOWER]] | (char_expr)|Convert all characters in a character expression to lower case. | | | [[dev:sql:functions:lower | LOWER]] | (char_expr)|Convert all characters in a character expression to lower case. | | ||
Line 94: | Line 99: | ||
| [[dev:sql:functions:rj | $RJ ]] | (char_expr) | Right justify a character expression eliminating trailing white space. | | | [[dev:sql:functions:rj | $RJ ]] | (char_expr) | Right justify a character expression eliminating trailing white space. | | ||
| [[dev:sql:functions:rpad | $RPAD ]] | (char_expr, len [, pad_char ])| Add trailing 'pad' characters to a character expression. | | | [[dev:sql:functions:rpad | $RPAD ]] | (char_expr, len [, pad_char ])| Add trailing 'pad' characters to a character expression. | | ||
- | |--------------------------------------|-----------------------------------------------|----------------------------------------------------------------------------------------------------------| | + | | ||| |
+ | ^**Math Functions** ^^^ | ||
+ | | [[dev:sql:functions:abs | ABS ]] | (num_expr) | Returns the absolute value of a numeric expression. | | ||
+ | | [[dev:sql:functions:mod | MOD ]] | (int_expr, divisor) | Returns the integral remainder of one integer expression divided by another. | | ||
+ | | [[dev:sql:functions:round | ROUND ]] | (num_expr [, digits]) | Round a numerical value to the specified number of decimal places. | | ||
+ | | [[dev:sql:functions:trunc | TRUNC ]] | (num_expr [, digits]) | Return a numeric expression truncated to a specified number of digits to the right of the decimal point. | | ||
+ | | [[dev:sql:functions:random | $RANDOM ]] | (num_expr [, seed]) | Return a pseudo-random number. | | ||
{{page>:bottom_add&nofooter&noeditbtn}} | {{page>:bottom_add&nofooter&noeditbtn}} |