View Single Post
  #4 (permalink)  
Old 08-11-05, 12:01 PM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
Quote:
Originally Posted by dennispopel
Hello,

Try ORDER BY persID
the results are being sorted as if he used that.. but he does NOT want that!
he wants the order to be as provided in the IN() ..
I've tried similar query here and it's also sorting it in ascending order.I am not sure why it's behaving like this..


edit: UNION is only for MySQL 4.x and above.. and I guess they would be slow..
also, if you are having one value why use IN() ?
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]

Last edited by NeverMind; 08-11-05 at 12:05 PM.
Reply With Quote