mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
Cleanup
This commit is contained in:
parent
2aeb2c642c
commit
d07d5d8d01
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.16 2000/05/20 11:38:25 momjian Exp $
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.17 2000/07/21 04:22:54 momjian Exp $
|
||||
Postgres documentation
|
||||
-->
|
||||
|
||||
@ -302,7 +302,7 @@ CREATE RULE example_3 AS
|
||||
</programlisting>
|
||||
</para>
|
||||
<para>
|
||||
Create a view of the employees working in the toy department.
|
||||
Create a view of the employees working in the toy department:
|
||||
<programlisting>
|
||||
CREATE toyemp(name = char16, salary = int4);
|
||||
|
||||
@ -315,7 +315,7 @@ CREATE RULE example_4 AS
|
||||
</programlisting>
|
||||
</para>
|
||||
<para>
|
||||
All new employees must make 5,000 or less
|
||||
All new employees must make 5,000 or less:
|
||||
<programlisting>
|
||||
CREATE RULE example_5 AS
|
||||
ON INERT TO emp WHERE new.salary > 5000
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_sequence.sgml,v 1.12 2000/05/08 16:19:56 thomas Exp $
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_sequence.sgml,v 1.13 2000/07/21 04:25:05 momjian Exp $
|
||||
Postgres documentation
|
||||
-->
|
||||
|
||||
@ -311,7 +311,7 @@ SELECT last_value FROM <replaceable>seqname</replaceable>;
|
||||
CREATE SEQUENCE serial START 101;
|
||||
</programlisting>
|
||||
<para>
|
||||
Select the next number from this sequence
|
||||
Select the next number from this sequence:
|
||||
<programlisting>
|
||||
SELECT NEXTVAL ('serial');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user