Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy stru command
Message
De
12/02/1999 08:00:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00186818
Message ID:
00186941
Vues:
11
>>>Is there a way to have dbf1 have dbf2's structure appended to it?
>>>thanks.
>>
>>Aside from reading the structures and doing an ALTER TABLE, you coudl try using COPY STRUCTURE...EXTENDED. Try:
>>
>>USE DBF1
>>COPY STRUCTURE EXTENDED TO TEMP1
>>USE DBF2
>>COPY STRUCTURE EXTENDED TO TEMP2
>>USE TEMP1
>>APPEND FROM TEMP2
>>USE
>>CREATE DBF3 FROM TEMP2
>>USE DBF3
>>APPEND FROM DBF1
>>ERASE TEMP1.DBF
>>ERASE TEMP2.DBF
>>
>>You'll need to filter out any duplicated field names, but this should give you a starting point.
>
>thanks that worked except instead of CREATE DBF3 FROM TEMP2
>you wanted CREATE DBF3 FROM TEMP1

I know - I posted a correction a couple of minutes after this...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform