Y
Y
Yapryntsew2015-10-20 12:59:39
MySQL
Yapryntsew, 2015-10-20 12:59:39

How to display a certain number of rows from a table in decreasing order of one of the values?

The table has multiple rows. Each row has a value in the type column from 1 to 10. How to display them in descending order, that is, all rows with a value of 10 would be displayed first, then 9, and so on.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
holfza, 2015-10-20
@Yapryntsew

SELECT * from table_name ORDER BY `type` DESC

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question