![]()
Codice PHP:
SELECT *
FROM fp_listino
WHERE quantita <=2500
ORDER BY quantita DESC
LIMIT 1
UNION
SELECT *
FROM fp_listino
WHERE quantita >=2500
ORDER BY quantita ASC
LIMIT 1
Messaggio di MySQL: Documentazione
#1221 - Incorrect usage of UNION and ORDER BY
![]()