Ciao,
credo che l'errore sia da individuare in altro punto. Il discorso del doppio order by l'ho risolto inserendo le select con gli order by all'interno di due subselect.
Dovresti eseguire la query da phpmyadmin o altro client mysql ed individuare puntualmente l'errore.
Potrebbe essere:
- al posto di UNION ALL metti UNION
- metti un alias alle due subselect
- la versione di Mysql non è aggiornata per poter far funzionare la UNION
SELECT * FROM (
SELECT DATA_CALENDARIO
FROM TB_CALENDARIO
WHERE DATA_CALENDARIO >= SYSDATE AND DATA_CALENDARIO BETWEEN '03-FEB-2014' AND '09-FEB-2014'
ORDER BY DATA_CALENDARIO ASC
) A
UNION ALL
SELECT * FROM (
SELECT DATA_CALENDARIO
FROM TB_CALENDARIO
WHERE DATA_CALENDARIO < SYSDATE AND DATA_CALENDARIO BETWEEN '03-FEB-2014' AND '09-FEB-2014'
ORDER BY DATA_CALENDARIO DESC
) B
Comunque, il messaggio di errore "ODBC driver does not support the requested properties" è troppo generico per poterti aiutare
Ciao
Mik
A quick solution is a shortcut to troubleshooting
HolidaySoft.it - Gestionali, Database, SitiWeb
GarganoSapori.it - Olio ExtraVergine del Gargano
OsteriaORistorante.it - Crea la Vetrina per il tuo Ristorante!