mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03: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
|
Postgres documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -302,7 +302,7 @@ CREATE RULE example_3 AS
|
|||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
<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>
|
<programlisting>
|
||||||
CREATE toyemp(name = char16, salary = int4);
|
CREATE toyemp(name = char16, salary = int4);
|
||||||
|
|
||||||
@ -315,7 +315,7 @@ CREATE RULE example_4 AS
|
|||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
All new employees must make 5,000 or less
|
All new employees must make 5,000 or less:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
CREATE RULE example_5 AS
|
CREATE RULE example_5 AS
|
||||||
ON INERT TO emp WHERE new.salary > 5000
|
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
|
Postgres documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -311,7 +311,7 @@ SELECT last_value FROM <replaceable>seqname</replaceable>;
|
|||||||
CREATE SEQUENCE serial START 101;
|
CREATE SEQUENCE serial START 101;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
Select the next number from this sequence
|
Select the next number from this sequence:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
SELECT NEXTVAL ('serial');
|
SELECT NEXTVAL ('serial');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user