aahaider Posted September 16, 2012 Share Posted September 16, 2012 Hi Friends, Here is a table TABLE... -------------------------------- ID Name Age --------------------------------- 1 arfan 22 2 azeem 18 3 haider 21 4 saleem 22 5 another 19 ------------------------------------- I want get data from database in this order. another 19 saleem 22 haider 21 azeem 18 arfan 22 ------------------------------------------------- Please Help me....THANKS.......... Quote Link to comment Share on other sites More sharing options...
Christian F. Posted September 16, 2012 Share Posted September 16, 2012 What order is that, specifically? From where I'm sitting it looks quite random, to be honest. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted September 16, 2012 Share Posted September 16, 2012 What order is that, specifically? From where I'm sitting it looks quite random, to be honest. ORDER BY ID DESC Quote Link to comment Share on other sites More sharing options...
Christian F. Posted September 16, 2012 Share Posted September 16, 2012 That's not what I understood from his post, Pikachu. As he specified the table design and example data first, then the order in which he wanted the rows to be fetched. aahider: As you can probably see you haven't posted enough information, leading to us being uncertain about what it is you want to accomplish. I recommend posting all relevant information about the issue you're having, with all associated details, whenever you ask for help. That way we'll know exactly what it is you want to do, and thus be able to give you accurate and quick assistance. As a part of that I do recommend that you read this article. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted September 16, 2012 Share Posted September 16, 2012 It seems pretty obvious to me, really. Quote Link to comment Share on other sites More sharing options...
Christian F. Posted September 16, 2012 Share Posted September 16, 2012 Gah.... I'm going to bed. You're right, I'm just faffing about apparently. Quote Link to comment Share on other sites More sharing options...
jazzman1 Posted September 16, 2012 Share Posted September 16, 2012 @Christian, you like the simple (not elementary) things. Simple question == simple answer, right? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.