Welcome Guest, Not a member yet? Register   Sign In
ordery by problem in codeigniter
#1

[eluser]Unknown[/eluser]
I had a simple problem in ordery by . Actually i had to order by d, a , b ,c . and if i did
by asceding order d comes at last . but i want the d datas to be come at first.

#2

[eluser]Aken[/eluser]
Maybe this will help.
#3

[eluser]Unknown[/eluser]
Thank you so much . It really works .
#4

[eluser]jmadsen[/eluser]
That is a good solution, but if you are able to, set it up with ENUM datatype and order the values the way you will want them in the query. It is a faster query.
#5

[eluser]Aken[/eluser]
Yeah, an enum column, or a specific sort order column, both of which can be indexed, will be much faster.
#6

[eluser]Abel A.[/eluser]
enum is a better/faster solution.
#7

[eluser]Mirge[/eluser]
[quote author="Aken" date="1343978848"]Maybe this will help.[/quote]

bookmarked, that's handy!




Theme © iAndrew 2016 - Forum software by © MyBB