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

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' &rarr; returns 1 </pre>
<pre> 'A' LIKE 'a' &rarr; returns 0 </pre>
<pre> 'A' LIKE 'B' &rarr; returns 0 </pre>
<pre> 'ABC' LIKE 'B' &rarr; returns 0 </pre>
<pre> 'ABC' LIKE '%B%' &rarr; returns 1 </pre>