Add missing information.
authorThomas G. Lockhart
Wed, 29 Jul 1998 06:32:47 +0000 (06:32 +0000)
committerThomas G. Lockhart
Wed, 29 Jul 1998 06:32:47 +0000 (06:32 +0000)
Fix examples for regex operators.

doc/src/sgml/func.sgml
doc/src/sgml/oper.sgml

index 91d86a9fa774750b33a9e6b6d9983fdef5129170..e2e4d9deeaa547fdc61807e3accbdcf4b50502f8 100644 (file)
@@ -1,4 +1,4 @@
-
+ Id="functions">
 Functions
 
 
@@ -74,7 +74,7 @@ are implemented using other Postgres functions.
 
 
 
-<Acronym>SQL92</Acronym> <span class="marked">Text</span> Functions
+<Acronym>SQL92</Acronym> <span class="marked">String</span> 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 
index 5ec76cf452ee4c7a87f3ea34fe472b9d19ba77fb..663d65e6b022ef2f2ef934cfe17e397c7ec4b886 100644 (file)
@@ -1,4 +1,4 @@
-
+ Id="operators">
 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.*'