mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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.
18 lines
625 B
Plaintext
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' → returns 1 </pre>
|
|
<pre> 'A' ILIKE 'a' → returns 1 </pre>
|
|
<pre> 'A' ILIKE 'B' → returns 0 </pre>
|
|
<pre> 'ABC' ILIKE 'b' → returns 0 </pre>
|
|
<pre> 'ABC' ILIKE 'B' → returns 0 </pre>
|
|
<pre> 'ABC' ILIKE '%b%' → returns 1 </pre>
|
|
<pre> 'ABC' ILIKE '%B%' → returns 1 </pre>
|