I’ve looked on Google but couldn’t find it. Can we order in MySQL using field’s position ?
Let’s say I got fields ID | FirstName | LastName | Age but I want to order by field 4, could I do something like ORDER BY FieldPos4 to order on Age ? I have not manage to find something about that.
Thanks.
You can refer to the columns by position (1-based):
From the documentation (emphasis mine):