Mysql
 sql >> Database >  >> RDS >> Mysql

SQL QUERY Problema di disposizione dei risultati

ordina per campo:

select name, description
from wp_widget_custom
where name in ('hemel-hempstead','maidenhead','guildford','bromley','east-london','hertfordshire','billericay','surrey')
order by field(name, 'hemel-hempstead','maidenhead','guildford','bromley','east-london','hertfordshire','billericay','surrey')