-2
Your question got a little fuzzy, but we’ll try.
SQL has a sort command, it is the order by
which may be asc
(defult) or desc
(descending order).
basically you should do:
select [campos]
from [tabela]
where [condição]
order by [campo ordenado] [asc/desc]
It’s hard to understand what you want. Gives to understand that you want to separate the fields of each row and regroup in a new row, what is absurd to a table of a database.
– anonimo
If the Field name column is alphanumeric what sort of sorting you want for such a field?
– anonimo
@Jânioprocópioferreira Could you add in the text of your question how you want the final presentation? Post example.
– José Diz