Selected Single-Row Functions
Wednesday, April 18th, 2007A function is a block of predefined code. Single-row functions return only a single row for each record processed. These functions include functions that deal with characters to dates.
| Type of Functions | Functions |
| Case conversion | UPPER, LOWER, INITCAP |
| Character manipulation | SUBSTR, INSTR, LENGTH, LPAD/RPAD, RTRIM/LTRIM, REPLACE, TRANSLATE, CONCAT |
| Numeric | ROUND, TRUNC, MOD, ABS |
| Date | MONTHS_BETWEEN, ADD_MONTHS, NEXT_DAY, TO_DATE, ROUND, CURRENT_DATE |
| Regular expressions | REGEXP_LIKE, REGEXP_SUBSTR |
| Other | NVL, NVL2, TO_CHAR, DECODE, SOUNDEX, TO_NUMBER |
When using a function in a SELECT the output will be modified accordingly but the data will not change in the database unless the function is used in an INSERT statement. (more…)