Jump to content

[SOLVED] Order by statement


mishuk

Recommended Posts

Is it possible to order the results of an sql statement by specifying which value you want at the top of the list and the rest can be in any order.

 

For example if i had a table that had the values 1 - 10 in them and i wanted to select each value but wanted the value 5 at the top followed by the rest.

 

e.g

5

1

2

3

4

6

7

and so on

 

Is this possible in any way?

Link to comment
https://forums.phpfreaks.com/topic/47492-solved-order-by-statement/
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.