Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Increment Field
Message
De
11/04/2008 15:27:08
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
11/04/2008 15:04:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01309981
Message ID:
01310031
Vues:
37
Worked like a charm. I always seem to get myself caught up in trying to do everything in SQL, or worse, one SQL.

>Hmm, set-oriented SQL is not always the best choice for row-oriented logic like this. You might be better off sticking with xBASE:
>
>m.lnOffset = < some integer value >
>
>SELECT ;
>  MyColumnOne ;
>  , MyColumnTwo ;
>  , CAST( 0 AS I ) AS IncColumn ;
>  ...
>  INTO CURSOR Output ;
>  ORDER BY ... ;
>  NOFILTER READWRITE
>
>SELECT Output
>REPLACE ALL ;
>  IncColumn WITH RECNO( "Output" ) + m.lnOffset ;
>  IN Output
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform