diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-03-07 00:47:41 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-03-07 00:47:41 +0000 |
commit | e67e399fd90796a6498264352cbf4ee3932067ca (patch) | |
tree | e2a017ab0fe15e416d798cb6c45d13b7754abe93 | |
parent | e2ab435e99ed521d0421c907fa9d6cdab0f23aff (diff) | |
download | postgresql-e67e399fd90796a6498264352cbf4ee3932067ca.tar.gz postgresql-e67e399fd90796a6498264352cbf4ee3932067ca.zip |
Add man page for oracle compatibility functions
By Edmund
-rw-r--r-- | src/man/oracle_compat.3 | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/man/oracle_compat.3 b/src/man/oracle_compat.3 new file mode 100644 index 00000000000..788b058335b --- /dev/null +++ b/src/man/oracle_compat.3 @@ -0,0 +1,55 @@ +.\" This is -*-nroff-*- +.\" XXX standard disclaimer belongs here.... +.\" $Id: oracle_compat.3,v 1.1 1997/03/07 00:47:41 scrappy Exp $ +.TH ORACLE_COMPAT SQL 03/06/97 PostgreSQL PostgreSQL +.SH DESCRIPTION +This is a set of single row character functions, defined for the datatype +text. They are supposed to behave exactly as their Oracle counterparts. +.PP +The following functions have been implemented: +.PP +.B LOWER(string) +.IP +Returns string, with all letters forced to lowercase. +.PP +.B UPPER(string) +.IP +Returns string, with all letters forced to uppercase. +.PP +.B INITCAP(string) +.IP +Returns string, with first letter of each word in uppercase, +all other letters in lowercase. A word is delimited by white +space. +.PP +.B LPAD(string1, len [,string2]) +.IP +Returns string1, left-padded to length len with the sequence +of characters in string2. string2 defaults to blanks. +.PP +.B RPAD(string1, len [,string2]) +.IP +Returns string1, right-padded to length len with the sequence +of characters in string2. string2 defaults to blanks. +.PP +.B LTRIM(string [,set]) +.IP +Returns string with initial characters removed up to the first +character not in set. set defaults to blanks. +.PP +.B RTRIM(string [,set]) +.IP +Returns string with final characters removed after the last +character not in set. set defaults to blanks. +.PP +.B SUBSTR(string, m [,n]) +.IP +Returns a portion of string, beginning at character m, n +characters long. If n is omitted, to the end of the string. +The first position of string is 1. +.PP +.B TRANSLATE(string, from, to) +.IP +Returns string after replacing all occurences of from with +the corresponding character in to. TRANSLATE will not remove +characters. |