because
mysql> select state,d09,d07 from service where d07 like '%10.100.1.1%'
+;
+-------+--------------------------+--------------+
| state | d09 | d07 |
+-------+--------------------------+--------------+
| 0 | cr1.pullpnt 25512 | 10.100.1.158 |
| 0 | Link PP2Prn 25506 | 10.100.1.157 |
| 0 | Link PP2Sol 25505 | 10.100.1.130 |
| 0 | CV2SOL 26754 | 10.100.1.138 |
| 0 | Link Sol2CV 26775 | 10.100.1.139 |
| 0 | Link Sol2PP 27014 | 10.100.1.131 |
| 0 | Link Princess2Pull 27016 | 10.100.1.154 |
| 0 | br1.glbx 28281 | 10.100.1.1 |
+-------+--------------------------+--------------+
8 rows in set (0.02 sec)
but I tried - thanks suggestion -
mysql> select state,d09,d07 from service where d07 like '%10.100.1.1';
+-------+----------------+------------+
| state | d09 | d07 |
+-------+----------------+------------+
| 0 | br1.glbx 28281 | 10.100.1.1 |
+-------+----------------+------------+
1 row in set (0.02 sec)
yes, I know perl site - a lot of wise monks - and regexp experts - tried mysql sites no help
now you regexp experts, why the unexpected regexp behavior?
is there something to learn here other than when to use regexp v. like?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|