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

Commit4c5cf54

Browse files
committed
doc: Document factorial function
This has existed for a very long time, equivalent to the ! and !!operators, but it was never documented.Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/flat/6ce1df0e-86a3-e544-743a-f357ff663f68%402ndquadrant.com
1 parent3f5863e commit4c5cf54

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,23 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
13471347
</para></entry>
13481348
</row>
13491349

1350+
<row>
1351+
<entry role="func_table_entry"><para role="func_signature">
1352+
<indexterm>
1353+
<primary>factorial</primary>
1354+
</indexterm>
1355+
<function>factorial</function> ( <type>bigint</type> )
1356+
<returnvalue>numeric</returnvalue>
1357+
</para>
1358+
<para>
1359+
Factorial
1360+
</para>
1361+
<para>
1362+
<literal>factorial(5)</literal>
1363+
<returnvalue>120</returnvalue>
1364+
</para></entry>
1365+
</row>
1366+
13501367
<row>
13511368
<entry role="func_table_entry"><para role="func_signature">
13521369
<indexterm>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp