[CBLX] Problème mysql

Philippe Delavalade philippe.delavalade at club-internet.fr
Sam 29 Sep 12:57:18 CEST 2007


Encore moi avec une autre question.

J'utilise mysql version 5.0.

Une requête du type

(select col1,col2 from t1,t2 where condition1 )
union
(select col1,col2 from t1,t2 where condition2 )
order by champ_machin;

me renvoie 

ERROR 1250 (42000): Table 't1' from one of the SELECTs cannot be used in
global ORDER clause

Or ceci est la syntaxe préconisée sur mysql.org.

Quelqu'un aurait-il une solution ou saurait-il où trouver plus
d'informations ? Sur le site mysql.com il y a bien quelques listes mais
en Allemange, au Danemark, etc. Rien de francophone.

Merci encore d'une aide.

-- 
Philippe
My computer is like a wigwam, no Windows, no Gates and an Apache inside


Plus d'informations sur la liste de diffusion CarrefourBLinuX