提交 10f400cc 编写于 作者: B Bruce Momjian

Fixes for examples from Thomas Diffenbach

上级 8fdd794d
<!-- <!--
$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 ...@@ -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 ...@@ -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 ...@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册