|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.519 2010/06/17 01:32:09 rhaas Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.520 2010/06/29 22:29:13 momjian Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="functions">
|
4 | 4 | <title>Functions and Operators</title>
|
|
1227 | 1227 | <row>
|
1228 | 1228 | <entry><literal><function>upper</function>(<parameter>string</parameter>)</literal></entry>
|
1229 | 1229 | <entry><type>text</type></entry>
|
1230 |
| - <entry>Convert string to uppercase</entry> |
| 1230 | + <entry>Convert string to upper case</entry> |
1231 | 1231 | <entry><literal>upper('tom')</literal></entry>
|
1232 | 1232 | <entry><literal>TOM</literal></entry>
|
1233 | 1233 | </row>
|
|
1457 | 1457 | <entry><literal><function>initcap</function>(<parameter>string</parameter>)</literal></entry>
|
1458 | 1458 | <entry><type>text</type></entry>
|
1459 | 1459 | <entry>
|
1460 |
| - Convert the first letter of each word to uppercase and the |
1461 |
| - rest to lowercase. Words are sequences of alphanumeric |
| 1460 | + Convert the first letter of each word to upper case and the |
| 1461 | + rest to lower case. Words are sequences of alphanumeric |
1462 | 1462 | characters separated by non-alphanumeric characters.
|
1463 | 1463 | </entry>
|
1464 | 1464 | <entry><literal>initcap('hi THOMAS')</literal></entry>
|
@@ -5014,55 +5014,55 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
|
5014 | 5014 | </row>
|
5015 | 5015 | <row>
|
5016 | 5016 | <entry><literal>MONTH</literal></entry>
|
5017 |
| - <entry>full uppercase month name (blank-padded to 9 chars)</entry> |
| 5017 | + <entry>full upper case month name (blank-padded to 9 chars)</entry> |
5018 | 5018 | </row>
|
5019 | 5019 | <row>
|
5020 | 5020 | <entry><literal>Month</literal></entry>
|
5021 | 5021 | <entry>full capitalized month name (blank-padded to 9 chars)</entry>
|
5022 | 5022 | </row>
|
5023 | 5023 | <row>
|
5024 | 5024 | <entry><literal>month</literal></entry>
|
5025 |
| - <entry>full lowercase month name (blank-padded to 9 chars)</entry> |
| 5025 | + <entry>full lower case month name (blank-padded to 9 chars)</entry> |
5026 | 5026 | </row>
|
5027 | 5027 | <row>
|
5028 | 5028 | <entry><literal>MON</literal></entry>
|
5029 |
| - <entry>abbreviated uppercase month name (3 chars in English, localized lengths vary)</entry> |
| 5029 | + <entry>abbreviated upper case month name (3 chars in English, localized lengths vary)</entry> |
5030 | 5030 | </row>
|
5031 | 5031 | <row>
|
5032 | 5032 | <entry><literal>Mon</literal></entry>
|
5033 | 5033 | <entry>abbreviated capitalized month name (3 chars in English, localized lengths vary)</entry>
|
5034 | 5034 | </row>
|
5035 | 5035 | <row>
|
5036 | 5036 | <entry><literal>mon</literal></entry>
|
5037 |
| - <entry>abbreviated lowercase month name (3 chars in English, localized lengths vary)</entry> |
| 5037 | + <entry>abbreviated lower case month name (3 chars in English, localized lengths vary)</entry> |
5038 | 5038 | </row>
|
5039 | 5039 | <row>
|
5040 | 5040 | <entry><literal>MM</literal></entry>
|
5041 | 5041 | <entry>month number (01-12)</entry>
|
5042 | 5042 | </row>
|
5043 | 5043 | <row>
|
5044 | 5044 | <entry><literal>DAY</literal></entry>
|
5045 |
| - <entry>full uppercase day name (blank-padded to 9 chars)</entry> |
| 5045 | + <entry>full upper case day name (blank-padded to 9 chars)</entry> |
5046 | 5046 | </row>
|
5047 | 5047 | <row>
|
5048 | 5048 | <entry><literal>Day</literal></entry>
|
5049 | 5049 | <entry>full capitalized day name (blank-padded to 9 chars)</entry>
|
5050 | 5050 | </row>
|
5051 | 5051 | <row>
|
5052 | 5052 | <entry><literal>day</literal></entry>
|
5053 |
| - <entry>full lowercase day name (blank-padded to 9 chars)</entry> |
| 5053 | + <entry>full lower case day name (blank-padded to 9 chars)</entry> |
5054 | 5054 | </row>
|
5055 | 5055 | <row>
|
5056 | 5056 | <entry><literal>DY</literal></entry>
|
5057 |
| - <entry>abbreviated uppercase day name (3 chars in English, localized lengths vary)</entry> |
| 5057 | + <entry>abbreviated upper case day name (3 chars in English, localized lengths vary)</entry> |
5058 | 5058 | </row>
|
5059 | 5059 | <row>
|
5060 | 5060 | <entry><literal>Dy</literal></entry>
|
5061 | 5061 | <entry>abbreviated capitalized day name (3 chars in English, localized lengths vary)</entry>
|
5062 | 5062 | </row>
|
5063 | 5063 | <row>
|
5064 | 5064 | <entry><literal>dy</literal></entry>
|
5065 |
| - <entry>abbreviated lowercase day name (3 chars in English, localized lengths vary)</entry> |
| 5065 | + <entry>abbreviated lower case day name (3 chars in English, localized lengths vary)</entry> |
5066 | 5066 | </row>
|
5067 | 5067 | <row>
|
5068 | 5068 | <entry><literal>DDD</literal></entry>
|
@@ -5110,19 +5110,19 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
|
5110 | 5110 | </row>
|
5111 | 5111 | <row>
|
5112 | 5112 | <entry><literal>RM</literal></entry>
|
5113 |
| - <entry>month in uppercase Roman numerals (I-XII; I=January)</entry> |
| 5113 | + <entry>month in upper case Roman numerals (I-XII; I=January)</entry> |
5114 | 5114 | </row>
|
5115 | 5115 | <row>
|
5116 | 5116 | <entry><literal>rm</literal></entry>
|
5117 |
| - <entry>month in lowercase Roman numerals (i-xii; i=January)</entry> |
| 5117 | + <entry>month in lower case Roman numerals (i-xii; i=January)</entry> |
5118 | 5118 | </row>
|
5119 | 5119 | <row>
|
5120 | 5120 | <entry><literal>TZ</literal></entry>
|
5121 |
| - <entry>uppercase time-zone name</entry> |
| 5121 | + <entry>upper case time-zone name</entry> |
5122 | 5122 | </row>
|
5123 | 5123 | <row>
|
5124 | 5124 | <entry><literal>tz</literal></entry>
|
5125 |
| - <entry>lowercase time-zone name</entry> |
| 5125 | + <entry>lower case time-zone name</entry> |
5126 | 5126 | </row>
|
5127 | 5127 | </tbody>
|
5128 | 5128 | </tgroup>
|
@@ -5155,12 +5155,12 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
|
5155 | 5155 | </row>
|
5156 | 5156 | <row>
|
5157 | 5157 | <entry><literal>TH</literal> suffix</entry>
|
5158 |
| - <entry>uppercase ordinal number suffix</entry> |
| 5158 | + <entry>upper case ordinal number suffix</entry> |
5159 | 5159 | <entry><literal>DDTH</literal>, e.g., <literal>12TH</></entry>
|
5160 | 5160 | </row>
|
5161 | 5161 | <row>
|
5162 | 5162 | <entry><literal>th</literal> suffix</entry>
|
5163 |
| - <entry>lowercase ordinal number suffix</entry> |
| 5163 | + <entry>lower case ordinal number suffix</entry> |
5164 | 5164 | <entry><literal>DDth</literal>, e.g., <literal>12th</></entry>
|
5165 | 5165 | </row>
|
5166 | 5166 | <row>
|
@@ -5521,12 +5521,12 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
|
5521 | 5521 | </row>
|
5522 | 5522 | <row>
|
5523 | 5523 | <entry><literal>TH</literal> suffix</entry>
|
5524 |
| - <entry>uppercase ordinal number suffix</entry> |
| 5524 | + <entry>upper case ordinal number suffix</entry> |
5525 | 5525 | <entry><literal>999TH</literal></entry>
|
5526 | 5526 | </row>
|
5527 | 5527 | <row>
|
5528 | 5528 | <entry><literal>th</literal> suffix</entry>
|
5529 |
| - <entry>lowercase ordinal number suffix</entry> |
| 5529 | + <entry>lower case ordinal number suffix</entry> |
5530 | 5530 | <entry><literal>999th</literal></entry>
|
5531 | 5531 | </row>
|
5532 | 5532 | </tbody>
|
@@ -8959,7 +8959,7 @@ table2-mapping
|
8959 | 8959 | converter will do the work for you. Just write the sequence name enclosed
|
8960 | 8960 | in single quotes so that it looks like a literal constant. For
|
8961 | 8961 | compatibility with the handling of ordinary
|
8962 |
| - <acronym>SQL</acronym> names, the string will be converted to lowercase |
| 8962 | + <acronym>SQL</acronym> names, the string will be converted to lower case |
8963 | 8963 | unless it contains double quotes around the sequence name. Thus:
|
8964 | 8964 | <programlisting>
|
8965 | 8965 | nextval('foo') <lineannotation>operates on sequence <literal>foo</literal></>
|
@@ -12612,7 +12612,7 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
12612 | 12612 | with the column. The first input parameter is a table name with
|
12613 | 12613 | optional schema, and the second parameter is a column name. Because
|
12614 | 12614 | the first parameter is potentially a schema and table, it is not treated
|
12615 |
| - as a double-quoted identifier, meaning it is lowercased by default, |
| 12615 | + as a double-quoted identifier, meaning it is lower cased by default, |
12616 | 12616 | while the second parameter, being just a column name, is treated as
|
12617 | 12617 | double-quoted and has its case preserved. The function returns a value
|
12618 | 12618 | suitably formatted for passing to sequence functions (see <xref
|
|
0 commit comments