]> granicus.if.org Git - postgresql/commitdiff
Include example of Postgres' extended query syntax which allow one to omit
authorThomas G. Lockhart <lockhart@fourpalms.org>
Fri, 18 Dec 1998 16:22:31 +0000 (16:22 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Fri, 18 Dec 1998 16:22:31 +0000 (16:22 +0000)
 the FROM clause. e.g. "SELECT table.*".

doc/src/sgml/ref/select.sgml

index a1b0ec4fe331aaabe1dc3374d784b61bc0d14f2d..315447a0beae7b9554f1e246a675bdba769582dc 100644 (file)
@@ -494,6 +494,27 @@ SELECT actors.name
   </para>
   
   <refsect2 id="R2-SQL-SELECT-4">
+   <refsect2info>
+    <date>1998-09-24</date>
+   </refsect2info>
+   <title>
+    <acronym>Extensions</acronym>
+   </title>
+
+   <para>
+<productname>Postgres</productname> allows one to omit 
+the <command>FROM</command> clause from a query. This feature
+was retained from the original PostQuel query language:
+  <programlisting>
+SELECT distributors.* WHERE name = 'Westwood';
+
+    did|name
+    ---+----------------
+    108|Westward
+  </programlisting>
+   </para>
+
+  <refsect2 id="R2-SQL-SELECT-5">
    <refsect2info>
     <date>1998-09-24</date>
    </refsect2info>