|
| 1 | +.\" This is -*-nroff-*- |
| 2 | +.\" XXX standard disclaimer belongs here.... |
| 3 | +.\" $Id: oracle_compat.3,v 1.1 1997/03/07 00:47:41 scrappy Exp $ |
| 4 | +.TH ORACLE_COMPAT SQL 03/06/97 PostgreSQL PostgreSQL |
| 5 | +.SH DESCRIPTION |
| 6 | +This is a set of single row character functions, defined for the datatype |
| 7 | +text. They are supposed to behave exactly as their Oracle counterparts. |
| 8 | +.PP |
| 9 | +The following functions have been implemented: |
| 10 | +.PP |
| 11 | +.B LOWER(string) |
| 12 | +.IP |
| 13 | +Returns string, with all letters forced to lowercase. |
| 14 | +.PP |
| 15 | +.B UPPER(string) |
| 16 | +.IP |
| 17 | +Returns string, with all letters forced to uppercase. |
| 18 | +.PP |
| 19 | +.B INITCAP(string) |
| 20 | +.IP |
| 21 | +Returns string, with first letter of each word in uppercase, |
| 22 | +all other letters in lowercase. A word is delimited by white |
| 23 | +space. |
| 24 | +.PP |
| 25 | +.B LPAD(string1, len [,string2]) |
| 26 | +.IP |
| 27 | +Returns string1, left-padded to length len with the sequence |
| 28 | +of characters in string2. string2 defaults to blanks. |
| 29 | +.PP |
| 30 | +.B RPAD(string1, len [,string2]) |
| 31 | +.IP |
| 32 | +Returns string1, right-padded to length len with the sequence |
| 33 | +of characters in string2. string2 defaults to blanks. |
| 34 | +.PP |
| 35 | +.B LTRIM(string [,set]) |
| 36 | +.IP |
| 37 | +Returns string with initial characters removed up to the first |
| 38 | +character not in set. set defaults to blanks. |
| 39 | +.PP |
| 40 | +.B RTRIM(string [,set]) |
| 41 | +.IP |
| 42 | +Returns string with final characters removed after the last |
| 43 | +character not in set. set defaults to blanks. |
| 44 | +.PP |
| 45 | +.B SUBSTR(string, m [,n]) |
| 46 | +.IP |
| 47 | +Returns a portion of string, beginning at character m, n |
| 48 | +characters long. If n is omitted, to the end of the string. |
| 49 | +The first position of string is 1. |
| 50 | +.PP |
| 51 | +.B TRANSLATE(string, from, to) |
| 52 | +.IP |
| 53 | +Returns string after replacing all occurences of from with |
| 54 | +the corresponding character in to. TRANSLATE will not remove |
| 55 | +characters. |
0 commit comments