Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert blank records
Message
 
À
27/01/2005 11:33:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00981237
Message ID:
00981246
Vues:
42
Off the top of my head this should do it (I don't have VFP here so I can't test it)

select distinct custid from mytable into mycursor

select mycursor
scan
insert into mytable (custid) values (mycursor.custid)
insert into mytable (custid) values (mycursor.custid)
endscan


Einar



endscan
>I have a database (regular table) that has records in it sorted by a field called "customerid". The "customerid" field identifies the customer ID number of individual records. There are multiple records with the same customer ID number. I want insert two empty/blank records after each group of records with the same customer ID number.
>
>What is the code to do that?
Semper ubi sub ubi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform