|
-
Apr 14th, 2004, 09:40 AM
#1
Getting sortet result from a MySQL table. [Resolved]
Is it some neith function that I can use to get my search result sorted by date from a MySQL table? If not is the only way to store all the rows in an array, and then make a sort function?
Last edited by NoteMe; Apr 15th, 2004 at 08:48 AM.
-
Apr 14th, 2004, 09:41 AM
#2
Or maybe there is a InesertSort function in some way?
-
Apr 14th, 2004, 09:48 AM
#3
Frenzied Member
Other than using "ORDER BY yourdatefield" in your SQL statement?
-
Apr 14th, 2004, 09:52 AM
#4
-
Apr 15th, 2004, 07:17 AM
#5
Frenzied Member
Bad professor?
-
Apr 15th, 2004, 07:18 AM
#6
Yeah...so bad that he made a bad student...
ANd I guess I need to use DESC or something to get it in the opposit order?
-
Apr 15th, 2004, 08:18 AM
#7
Frenzied Member
-
Apr 15th, 2004, 08:48 AM
#8
This thread is more then resolved... ...thanks.
-
Apr 15th, 2004, 10:52 AM
#9
Stuck in the 80s
I guess your professor forgot to give you the invite to the super secret database club too, didn't he?
-
Apr 15th, 2004, 10:56 AM
#10
Yeah he did...but I hate databases that much, that I am glad he did...is it one thing I wish I didn't have to learn, it would have been about databases....
We have a (X)HTML, CSS, PHP, MySQL class now..and he thought that the other teacher had thought us all about SQL queryes in the Database theory class, but I guess not since I havn't hear abou this.
He added something about MAX, SUM and something at the end of the year too, but never said how to use it. But at least I know it's there...
-
Apr 15th, 2004, 01:38 PM
#11
databases are easy.. why do you hate them so much?
-
Apr 15th, 2004, 01:40 PM
#12
I think it is boring....just a buch of data....and it is slow and needs a lot of maintains. Game/Graphics progragramming on the other side, is much more fun. Wish I had more about that at school.
-
Apr 15th, 2004, 09:30 PM
#13
Stuck in the 80s
Databases are slow? It needs a lot of maintenance? Huh? Who gave you your information?
They're boring? Just a bunch of data? Well, everything else is just a bunch of code. That's not boring?
-
Apr 16th, 2004, 04:53 AM
#14
If you want to search for a record in a 1.000.000 records datbaseyou can't expect a frame rate of 50FPS like in a game no mather what way you are searching it.. ..
And you need to delete old records, update old records. Reindex, and stuff like no one cares about but the one that is doing it....
At least in graphics programming you have something to lay your eyes on. Something that is both fun and can be beautiful. Only your imagination can stop you....
-
Apr 16th, 2004, 10:32 AM
#15
Stuck in the 80s
The computing world would be much different without databases. My best advice is to deal.
-
Apr 16th, 2004, 12:42 PM
#16
I am so fed up about teaching first greaders about datastructures and stuff.
But learnng new datastructures like OCT Tree, Quad Tree AABB trees and stuff like that can be fun. As long as you use them for games...
I know that you can't live with out databases, and there is a **** load of jobs out there where you need to know a lot about them. But I don't want that kind of job anyway. So let the people who like it get those jobs, and please let me join the 3D apartment at ATI in 4-5years...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|