File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1
- <Chapter>
1
+ <Chapter Id="functions" >
2
2
<Title>Functions</Title>
3
3
4
4
<Abstract>
@@ -74,7 +74,7 @@ are implemented using other <ProductName>Postgres</ProductName> functions.
74
74
75
75
<Para>
76
76
<TABLE TOCENTRY="1">
77
- <TITLE><Acronym>SQL92</Acronym> Text Functions</TITLE>
77
+ <TITLE><Acronym>SQL92</Acronym> String Functions</TITLE>
78
78
<TGROUP COLS="4">
79
79
<THEAD>
80
80
<ROW>
@@ -139,6 +139,12 @@ Some are used internally to implement the SQL92 string functions listed above.
139
139
<ENTRY> char(varchar 'varchar string') </ENTRY>
140
140
</ROW>
141
141
<ROW>
142
+ <ENTRY> initcap(text) </ENTRY>
143
+ <ENTRY> text </ENTRY>
144
+ <ENTRY> first letter of each word to upper case </ENTRY>
145
+ <ENTRY> initcap('thomas') </ENTRY>
146
+ </ROW>
147
+ <ROW>
142
148
<ENTRY> lower(text) </ENTRY>
143
149
<ENTRY> text </ENTRY>
144
150
<ENTRY> convert text to lower case </ENTRY>
@@ -193,6 +199,12 @@ Some are used internally to implement the SQL92 string functions listed above.
193
199
<ENTRY> text(varchar 'varchar string') </ENTRY>
194
200
</ROW>
195
201
<ROW>
202
+ <ENTRY> translate(text,from,to) </ENTRY>
203
+ <ENTRY> text </ENTRY>
204
+ <ENTRY> convert character in string </ENTRY>
205
+ <ENTRY> translate('12345', '1', 'a') </ENTRY>
206
+ </ROW>
207
+ <ROW>
196
208
<ENTRY> varchar(char) </ENTRY>
197
209
<ENTRY> varchar </ENTRY>
198
210
<ENTRY> convert char to varchar type </ENTRY>
Original file line number Diff line number Diff line change 1
- <Chapter>
1
+ <Chapter Id="operators" >
2
2
<Title>Operators</Title>
3
3
4
4
<Abstract>
@@ -102,22 +102,22 @@ from numeric types to data/time types.
102
102
<ROW>
103
103
<ENTRY> ~ </ENTRY>
104
104
<ENTRY>Match (regex), case sensitive</ENTRY>
105
- <ENTRY>'thomas' ~ '*.thomas*. '</ENTRY>
105
+ <ENTRY>'thomas' ~ '.*thomas.* '</ENTRY>
106
106
</ROW>
107
107
<ROW>
108
108
<ENTRY> ~* </ENTRY>
109
109
<ENTRY>Match (regex), case insensitive</ENTRY>
110
- <ENTRY>'thomas' ~* '*.Thomas*. '</ENTRY>
110
+ <ENTRY>'thomas' ~* '.*Thomas.* '</ENTRY>
111
111
</ROW>
112
112
<ROW>
113
113
<ENTRY> !~ </ENTRY>
114
114
<ENTRY>Does not match (regex), case sensitive</ENTRY>
115
- <ENTRY>'thomas' !~ '*.Thomas*. '</ENTRY>
115
+ <ENTRY>'thomas' !~ '.*Thomas.* '</ENTRY>
116
116
</ROW>
117
117
<ROW>
118
118
<ENTRY> !~* </ENTRY>
119
119
<ENTRY>Does not match (regex), case insensitive</ENTRY>
120
- <ENTRY>'thomas' !~ '*.vadim*. '</ENTRY>
120
+ <ENTRY>'thomas' !~ '.*vadim.* '</ENTRY>
121
121
</ROW>
122
122
</TBODY>
123
123
</TGROUP>
You can’t perform that action at this time.
0 commit comments