Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a copy of a table + 1 column
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00807177
Message ID:
00807426
Vues:
23
Brenda,

Give this a try:
*-- Copy the structure to a temporary table
USE data\sfacct
COPY STRUCTURE EXTENDED TO tmpStruct 

*-- Add a new record to the table for your new field/column
USE tmpStruct
INSERT INTO tmpStruct (field_name, field_type, field_len, field_dec) ;
	VALUES ('NewField', 'C', 30, 0)

*-- Create the new table
CREATE NewTable FROM tmpStruct
Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform