Commit 8a395e0b authored by Bruce Momjian's avatar Bruce Momjian

doc: add link for list-of-scalars mention

Reported-by: Manlio Perillo

Bug: 14016

Discussion: 20160311163928.6674.94707@wrigleys.postgresql.org

Reviewed-by: David G. Johnston
parent 46eafc88
...@@ -14609,7 +14609,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2); ...@@ -14609,7 +14609,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = tab1.col2);
Boolean (true/false) results. Boolean (true/false) results.
</para> </para>
<sect2> <sect2 id="functions-comparisons-in-scalar">
<title><literal>IN</literal></title> <title><literal>IN</literal></title>
<synopsis> <synopsis>
......
...@@ -219,7 +219,8 @@ WHERE ip_address IN (VALUES('192.168.0.1'::inet), ('192.168.0.10'), ('192.168.1. ...@@ -219,7 +219,8 @@ WHERE ip_address IN (VALUES('192.168.0.1'::inet), ('192.168.0.10'), ('192.168.1.
<tip> <tip>
<para> <para>
For simple <literal>IN</> tests, it's better to rely on the For simple <literal>IN</> tests, it's better to rely on the
list-of-scalars form of <literal>IN</> than to write a <command>VALUES</> <link linkend="functions-comparisons-in-scalar">list-of-scalars</link>
form of <literal>IN</> than to write a <command>VALUES</>
query as shown above. The list of scalars method requires less writing query as shown above. The list of scalars method requires less writing
and is often more efficient. and is often more efficient.
</para> </para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment