I am using mySql and I have a record with is in end of the table. I want to bring it to the top of the table. How can move it? I mean there are entries at top of the table, how can i replace ids of both the entries with each other.
I want to do this because i want to move the last item to the start of the list, so that it appears first on my website.
thanks
I suppose a simple ORDER BY in the select query will not satisfy your needs, so here is a way to physically replace row with id = 123 with row id = 1 assuming your table has more than 123 rows