In my table, I have a blob field called "order_comments" The following query produces the following output:
Code:
select orders_supplement_id, shipping, order_comments from orders_supplement, orders where orders_supplement_id > 110000 AND order_id = orders_supplement_id AND shipping not like "%US%" limit 10;
+----------------------+----------------+-----------------------+
| orders_supplement_id | shipping | order_comments |
+----------------------+----------------+-----------------------+
| 110007 | Express-Canada | NULL |
| 110050 | Canada | You have nice things! |
| 110055 | Intl | NULL |
| 110081 | Canada | NULL |
| 110082 | Canada | NULL |
| 110101 | Canada | NULL |
| 110107 | Canada | NULL |
| 110119 | Intl | NULL |
| 110126 | Canada | NULL |
| 110147 | Canada | NULL |
+----------------------+----------------+-----------------------+
10 rows in set (0.00 sec)
So now, I want to pick only those results that have something in the comment field, but I can't seem to get it to work. I've tried:
order_comments is not null
order_comments not like "NULL%"
... and a few other ridiculous incarnations, but I can't seem to get anything other than the results above. ideas?