Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf26203e

Browse files
committed
Add information about format modifiers that apply to numeric formats.
These were previously only documented in the context of date/time formats.
1 parentbd929b4 commitf26203e

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.419 2007/12/21 03:37:18 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.420 2008/02/26 15:32:30 petere Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -5320,6 +5320,45 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
53205320
</itemizedlist>
53215321
</para>
53225322

5323+
<para>
5324+
Certain modifiers can be applied to any template pattern to alter its
5325+
behavior. For example, <literal>FM9999</literal>
5326+
is the <literal>9999</literal> pattern with the
5327+
<literal>FM</literal> modifier.
5328+
<xref linkend="functions-formatting-numericmod-table"> shows the
5329+
modifier patterns for numeric formatting.
5330+
</para>
5331+
5332+
<table id="functions-formatting-numericmod-table">
5333+
<title>Template Pattern Modifiers for Numeric Formatting</title>
5334+
<tgroup cols="3">
5335+
<thead>
5336+
<row>
5337+
<entry>Modifier</entry>
5338+
<entry>Description</entry>
5339+
<entry>Example</entry>
5340+
</row>
5341+
</thead>
5342+
<tbody>
5343+
<row>
5344+
<entry><literal>FM</literal> prefix</entry>
5345+
<entry>fill mode (suppress padding blanks and zeroes)</entry>
5346+
<entry><literal>FM9999</literal></entry>
5347+
</row>
5348+
<row>
5349+
<entry><literal>TH</literal> suffix</entry>
5350+
<entry>uppercase ordinal number suffix</entry>
5351+
<entry><literal>999TH</literal></entry>
5352+
</row>
5353+
<row>
5354+
<entry><literal>th</literal> suffix</entry>
5355+
<entry>lowercase ordinal number suffix</entry>
5356+
<entry><literal>999th</literal></entry>
5357+
</row>
5358+
</tbody>
5359+
</tgroup>
5360+
</table>
5361+
53235362
<para>
53245363
<xref linkend="functions-formatting-examples-table"> shows some
53255364
examples of the use of the <function>to_char</function> function.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp