From bd6b6f40de75401d282121fa5f084c98dd65708a Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Wed, 29 Jul 1998 06:32:47 +0000 Subject: [PATCH] Add missing information. Fix examples for regex operators. --- doc/src/sgml/func.sgml | 16 ++++++++++++++-- doc/src/sgml/oper.sgml | 10 +++++----- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 91d86a9fa7..e2e4d9deea 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions @@ -74,7 +74,7 @@ are implemented using other Postgres functions. -<Acronym>SQL92</Acronym> Text Functions +<Acronym>SQL92</Acronym> String Functions @@ -139,6 +139,12 @@ Some are used internally to implement the SQL92 string functions listed above. char(varchar 'varchar string') + initcap(text) + text + first letter of each word to upper case + initcap('thomas') + + lower(text) text convert text to lower case @@ -193,6 +199,12 @@ Some are used internally to implement the SQL92 string functions listed above. text(varchar 'varchar string') + translate(text,from,to) + text + convert character in string + translate('12345', '1', 'a') + + varchar(char) varchar convert char to varchar type diff --git a/doc/src/sgml/oper.sgml b/doc/src/sgml/oper.sgml index 5ec76cf452..663d65e6b0 100644 --- a/doc/src/sgml/oper.sgml +++ b/doc/src/sgml/oper.sgml @@ -1,4 +1,4 @@ - + Operators @@ -102,22 +102,22 @@ from numeric types to data/time types. ~ Match (regex), case sensitive - 'thomas' ~ '*.thomas*.' + 'thomas' ~ '.*thomas.*' ~* Match (regex), case insensitive - 'thomas' ~* '*.Thomas*.' + 'thomas' ~* '.*Thomas.*' !~ Does not match (regex), case sensitive - 'thomas' !~ '*.Thomas*.' + 'thomas' !~ '.*Thomas.*' !~* Does not match (regex), case insensitive - 'thomas' !~ '*.vadim*.' + 'thomas' !~ '.*vadim.*' -- 2.11.0