mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Fixes for examples from Thomas Diffenbach
This commit is contained in:
parent
8fdd794d97
commit
10f400ccee
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/sql.sgml,v 1.13 2000/11/29 20:15:59 petere Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/sql.sgml,v 1.14 2000/12/09 22:59:25 momjian Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="sql">
|
<chapter id="sql">
|
||||||
@ -934,7 +934,7 @@ SELECT PNAME, PRICE
|
|||||||
SELECT PNAME, PRICE
|
SELECT PNAME, PRICE
|
||||||
FROM PART
|
FROM PART
|
||||||
WHERE PNAME = 'Bolt' AND
|
WHERE PNAME = 'Bolt' AND
|
||||||
(PRICE = 0 OR PRICE < 15);
|
(PRICE = 0 OR PRICE <= 15);
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
will lead to the result:
|
will lead to the result:
|
||||||
@ -1350,7 +1350,7 @@ SELECT S.SNO, S.SNAME, S.CITY
|
|||||||
INTERSECT
|
INTERSECT
|
||||||
SELECT S.SNO, S.SNAME, S.CITY
|
SELECT S.SNO, S.SNAME, S.CITY
|
||||||
FROM SUPPLIER S
|
FROM SUPPLIER S
|
||||||
WHERE S.SNO > 2;
|
WHERE S.SNO < 3;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
gives the result:
|
gives the result:
|
||||||
@ -1624,7 +1624,7 @@ CREATE VIEW London_Suppliers
|
|||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
SELECT * FROM London_Suppliers
|
SELECT * FROM London_Suppliers
|
||||||
WHERE P.PNAME = 'Screw';
|
WHERE PNAME = 'Screw';
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
which will return the following table:
|
which will return the following table:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user