[gull] UNION avec MySQL

Philippe Jayet hip at lan-attack.ch
Sun Jun 29 14:24:35 CEST 2003


Bonjour !

> J'ai MySQL 3.23 et j'aimerai réaliser la requête :
>
> (SELECT * FROM planning_hebergement WHERE period >= '".date("md")."%'
ORDER
> BY period ASC)
> UNION
> (SELECT * FROM planning_hebergement WHERE period < '".date("md")."%' ORDER
> BY period ASC);

Il y a un moyen d'"émuler" le comportement du statement UNION :

http://jinxidoru.com/tutorials/union.html [anglais]

Pas forcément très pratique suivant ce que l'on veut faire, mais si ça peut
t'aider ...

Philippe J.





More information about the gull mailing list