Last post Jun 27, 2018 05:15 AM by Brando ZWZ
Jun 26, 2018 09:34 AM|sidu|LINK
How to get the result of select * from emp in reverse order
botttom record will show first
Jun 26, 2018 09:59 AM|rajesh93180|LINK
If your database table have any ID field, fetch the data based on that field in descending order.
Jun 27, 2018 05:15 AM|Brando ZWZ|LINK
As far as I know, to sort in reverse order, you could add the DESC (descending) keyword to the name of the column in the ORDER BY clause that you are sorting by.
The default is ascending order; this can be specified explicitly using the ASC keyword.
More details, you could refer to below select exmaple:
select * from emp ORDER BY [Your column name] DESC