Don E Posted January 26, 2015 Share Posted January 26, 2015 Hello everyone, Just like this forum when a thread is updated and move to the top of threads made by someone posting in that particular thread and appears first in the list of threads made for that particular forum, how do we make a row become the first row for a particular table? I hope my question is clear. Thanks. Link to comment Share on other sites More sharing options...
justsomeguy Posted January 26, 2015 Share Posted January 26, 2015 You use ORDER BY. There's no reason to try and change how records are physically stored by the database server. Link to comment Share on other sites More sharing options...
Don E Posted January 27, 2015 Author Share Posted January 27, 2015 Would that be ORDER BY last insert/updated ID? Can you point me to an example? Thanks. Link to comment Share on other sites More sharing options...
Ingolme Posted January 27, 2015 Share Posted January 27, 2015 Here's the tutorial page for the ORDER BY keyword: http://www.w3schools.com/sql/sql_orderby.asp Usually when you retrieve the data you would order by date in descending order. Link to comment Share on other sites More sharing options...
Don E Posted January 27, 2015 Author Share Posted January 27, 2015 Usually when you retrieve the data you would order by date in descending order. Right, of course! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now