Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statement
Message
De
07/04/2021 13:13:29
 
 
À
07/04/2021 11:13:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01679648
Message ID:
01679650
Vues:
57
>Hi:
>I'm wanting to populate a listbox with a SQL query.
>In the result I would like a count of the record (like a RECNO()) in the result..
>such as following result:
>1 record data
>2 record data
>3 record data
>
>How do you generate that record number in the result?

You can't do it in a single step, but you can with a subquery. Something like this, where the query that collects the data is the subquery:
SELECT RECNO() AS nPosition, * ;
   FROM ( ;
      SELECT * ;
         FROM Products ;
         ORDER BY ProductName) ProductsAlpha ;
   INTO CURSOR ProductList
Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform