Advertisement

05.09.2008 at 08:27AM PDT, ID: 23389722
[x]
Attachment Details

MySQL query result issue

Asked by imaginative in MySQL, PHP and Databases, SQL Query Syntax

Ok, I'm seeing really odd stuff with queries for a simple result set.  Can anyone explain why the following is happening and HOW I can fix it?

mysql> select DrugName from ms_drugs where DrugName like 'tylenol%' order by DrugName LIMIT 1,20;
+------------+
| DrugName   |
+------------+
| Tylenol #3 |
+------------+
1 row in set (0.01 sec)

mysql> select DrugName from ms_drugs where DrugName like 'tylenol%';
+------------+
| DrugName   |
+------------+
| Tylenol #3 |
| Tylenol    |
+------------+
2 rows in set (0.01 sec)   Start Free Trial
[+][-]05.09.2008 at 08:29AM PDT, ID: 21533870

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MySQL, PHP and Databases, SQL Query Syntax
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.09.2008 at 08:30AM PDT, ID: 21533886

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628