mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add missing information.
Fix examples for regex operators.
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
<Chapter>
|
<Chapter Id="functions">
|
||||||
<Title>Functions</Title>
|
<Title>Functions</Title>
|
||||||
|
|
||||||
<Abstract>
|
<Abstract>
|
||||||
@ -74,7 +74,7 @@ are implemented using other <ProductName>Postgres</ProductName> functions.
|
|||||||
|
|
||||||
<Para>
|
<Para>
|
||||||
<TABLE TOCENTRY="1">
|
<TABLE TOCENTRY="1">
|
||||||
<TITLE><Acronym>SQL92</Acronym> Text Functions</TITLE>
|
<TITLE><Acronym>SQL92</Acronym> String Functions</TITLE>
|
||||||
<TGROUP COLS="4">
|
<TGROUP COLS="4">
|
||||||
<THEAD>
|
<THEAD>
|
||||||
<ROW>
|
<ROW>
|
||||||
@ -139,6 +139,12 @@ Some are used internally to implement the SQL92 string functions listed above.
|
|||||||
<ENTRY> char(varchar 'varchar string') </ENTRY>
|
<ENTRY> char(varchar 'varchar string') </ENTRY>
|
||||||
</ROW>
|
</ROW>
|
||||||
<ROW>
|
<ROW>
|
||||||
|
<ENTRY> initcap(text) </ENTRY>
|
||||||
|
<ENTRY> text </ENTRY>
|
||||||
|
<ENTRY> first letter of each word to upper case </ENTRY>
|
||||||
|
<ENTRY> initcap('thomas') </ENTRY>
|
||||||
|
</ROW>
|
||||||
|
<ROW>
|
||||||
<ENTRY> lower(text) </ENTRY>
|
<ENTRY> lower(text) </ENTRY>
|
||||||
<ENTRY> text </ENTRY>
|
<ENTRY> text </ENTRY>
|
||||||
<ENTRY> convert text to lower case </ENTRY>
|
<ENTRY> convert text to lower case </ENTRY>
|
||||||
@ -193,6 +199,12 @@ Some are used internally to implement the SQL92 string functions listed above.
|
|||||||
<ENTRY> text(varchar 'varchar string') </ENTRY>
|
<ENTRY> text(varchar 'varchar string') </ENTRY>
|
||||||
</ROW>
|
</ROW>
|
||||||
<ROW>
|
<ROW>
|
||||||
|
<ENTRY> translate(text,from,to) </ENTRY>
|
||||||
|
<ENTRY> text </ENTRY>
|
||||||
|
<ENTRY> convert character in string </ENTRY>
|
||||||
|
<ENTRY> translate('12345', '1', 'a') </ENTRY>
|
||||||
|
</ROW>
|
||||||
|
<ROW>
|
||||||
<ENTRY> varchar(char) </ENTRY>
|
<ENTRY> varchar(char) </ENTRY>
|
||||||
<ENTRY> varchar </ENTRY>
|
<ENTRY> varchar </ENTRY>
|
||||||
<ENTRY> convert char to varchar type </ENTRY>
|
<ENTRY> convert char to varchar type </ENTRY>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<Chapter>
|
<Chapter Id="operators">
|
||||||
<Title>Operators</Title>
|
<Title>Operators</Title>
|
||||||
|
|
||||||
<Abstract>
|
<Abstract>
|
||||||
@ -102,22 +102,22 @@ from numeric types to data/time types.
|
|||||||
<ROW>
|
<ROW>
|
||||||
<ENTRY> ~ </ENTRY>
|
<ENTRY> ~ </ENTRY>
|
||||||
<ENTRY>Match (regex), case sensitive</ENTRY>
|
<ENTRY>Match (regex), case sensitive</ENTRY>
|
||||||
<ENTRY>'thomas' ~ '*.thomas*.'</ENTRY>
|
<ENTRY>'thomas' ~ '.*thomas.*'</ENTRY>
|
||||||
</ROW>
|
</ROW>
|
||||||
<ROW>
|
<ROW>
|
||||||
<ENTRY> ~* </ENTRY>
|
<ENTRY> ~* </ENTRY>
|
||||||
<ENTRY>Match (regex), case insensitive</ENTRY>
|
<ENTRY>Match (regex), case insensitive</ENTRY>
|
||||||
<ENTRY>'thomas' ~* '*.Thomas*.'</ENTRY>
|
<ENTRY>'thomas' ~* '.*Thomas.*'</ENTRY>
|
||||||
</ROW>
|
</ROW>
|
||||||
<ROW>
|
<ROW>
|
||||||
<ENTRY> !~ </ENTRY>
|
<ENTRY> !~ </ENTRY>
|
||||||
<ENTRY>Does not match (regex), case sensitive</ENTRY>
|
<ENTRY>Does not match (regex), case sensitive</ENTRY>
|
||||||
<ENTRY>'thomas' !~ '*.Thomas*.'</ENTRY>
|
<ENTRY>'thomas' !~ '.*Thomas.*'</ENTRY>
|
||||||
</ROW>
|
</ROW>
|
||||||
<ROW>
|
<ROW>
|
||||||
<ENTRY> !~* </ENTRY>
|
<ENTRY> !~* </ENTRY>
|
||||||
<ENTRY>Does not match (regex), case insensitive</ENTRY>
|
<ENTRY>Does not match (regex), case insensitive</ENTRY>
|
||||||
<ENTRY>'thomas' !~ '*.vadim*.'</ENTRY>
|
<ENTRY>'thomas' !~ '.*vadim.*'</ENTRY>
|
||||||
</ROW>
|
</ROW>
|
||||||
</TBODY>
|
</TBODY>
|
||||||
</TGROUP>
|
</TGROUP>
|
||||||
|
Reference in New Issue
Block a user