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.
16 lines
437 B
Plaintext
16 lines
437 B
Plaintext
<h3>LIKE expression</h3>
|
|
Returns 1 if the first parameter matches the supplied pattern. Works with numbers also.
|
|
|
|
<h4>Syntax</h4>
|
|
<pre>string/number LIKE pattern</pre>
|
|
|
|
<h4>Arguments</h4>
|
|
None
|
|
|
|
<h4>Example</h4>
|
|
<pre> 'A' LIKE 'A' → returns 1 </pre>
|
|
<pre> 'A' LIKE 'a' → returns 0 </pre>
|
|
<pre> 'A' LIKE 'B' → returns 0 </pre>
|
|
<pre> 'ABC' LIKE 'B' → returns 0 </pre>
|
|
<pre> 'ABC' LIKE '%B%' → returns 1 </pre>
|