Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy stru command
Message
De
11/02/1999 17:44:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00186818
Message ID:
00186820
Vues:
20
>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.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform