Numero Auto_increment sur MySQL
Bonjour !!!
j'ai la requette suivante !!
Code:
1 2 3 4 5 6 7 8 9 10
|
SELECT c.cstructeur,t.typeglobal,t.cdseg,t.cyldre,t.carbre,sum(s.qt)as total
FROM cstruct c, TYPE t ,sales s
WHERE s.cdtype = t.cdtype and
t.cdcstruct = c.cdcstruct and
t.cdseg = :sg and
t.CLASSE = :cl and
s.YEAR = :year
group by typeglobal
ORDER BY total DESC; |
elle marche correctement !!
maintenent je voudrai bien savoir s'il est possible d'ajouter a la requette une colonne( imaginaire :oops: ) pour que je puisse afficher sur cette derniere un numero ( numero du resultat)
merci pour votre aide !!