Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b368788

Browse files
committed
Update CREATE SEQUENCE documentation to show the same sequence being
created and increments. The old docs created the sequence, then showed a nextval() of 114.
1 parent 40bf871 commit b368788

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

doc/src/sgml/ref/create_sequence.sgml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/create_sequence.sgml,v 1.47 2007/02/01 00:28:18 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_sequence.sgml,v 1.48 2007/02/01 00:34:03 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -288,7 +288,18 @@ SELECT nextval('serial');
288288

289289
nextval
290290
---------
291-
114
291+
101
292+
</programlisting>
293+
</para>
294+
295+
<para>
296+
Select the next number from this sequence:
297+
<programlisting>
298+
SELECT nextval('serial');
299+
300+
nextval
301+
---------
302+
102
292303
</programlisting>
293304
</para>
294305

0 commit comments

Comments
 (0)