Jump to content

IN()


dreamwest

Recommended Posts

Is there a way i can set IN() to return rows in order aka from  left to right

 

Table:

 

id  name

 

2      amazing

12    video

15    funny

 

example query:

SELECT id FROM table WHERE name IN('funny','amazing','video')

 

Which out puts:

 

2

12

15

 

What i need the output to be is

 

15

2

12

Link to comment
https://forums.phpfreaks.com/topic/227726-in/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.