How to get the last record to the first

0

I have these names in my table:

nome
-----
A
B
C
D
E
F

If you do:

SELECT nome FROM tabela

It will return me "A, B, C, D, E, F" .

I would like it to come back from the last record to the first.

  

F, E, D, C, B, A.

How could I do it?

    
asked by anonymous 17.12.2018 / 14:03

1 answer

4

You can sort your return using the order by :

SELECT nome FROM tabela ORDER BY nome DESC
    
17.12.2018 / 14:07