Tomáš Pospíšek 0af69ed9fb Add pertinent example for 'LIKE' operator
The usage examples for the 'LIKE' operator are not really pertinent. The proposed change adds an example that actually illustrates the usual usage of the 'LIKE' operator.
2015-06-03 12:51:04 +02:00

18 lines
625 B
Plaintext

<h3>ILIKE expression</h3>
Returns 1 if the first parameter matches case-insensitive the supplied pattern. LIKE can be used instead of ILIKE to make the match case-sensitive. Works with numbers also.
<h4>Syntax</h4>
<pre>string/number ILIKE pattern</pre>
<h4>Arguments</h4>
None
<h4>Example</h4>
<pre> 'A' ILIKE 'A' &rarr; returns 1 </pre>
<pre> 'A' ILIKE 'a' &rarr; returns 1 </pre>
<pre> 'A' ILIKE 'B' &rarr; returns 0 </pre>
<pre> 'ABC' ILIKE 'b' &rarr; returns 0 </pre>
<pre> 'ABC' ILIKE 'B' &rarr; returns 0 </pre>
<pre> 'ABC' ILIKE '%b%' &rarr; returns 1 </pre>
<pre> 'ABC' ILIKE '%B%' &rarr; returns 1 </pre>