Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a copy of a table + 1 column
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00807177
Message ID:
00807426
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform