Bonjour,
petit cas de conscience :
Me renvoie l'erreur :Code:(SELECT 1) UNION (SELECT 2) ORDER BY 0
Tandis que :Citation:
Error: The order-by position number '0' is out of range of the number of items in the select-list.
Fonctionne. Comment ça se fait? Quelle est la colonne utilisée quand je stipule 0 ?Code:
1
2
3
4
5
6
7 select 1 as 'v' into #tmp select v from #tmp group by v ORDER BY CASE WHEN 1=1 THEN 0 END
:merci: