Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy Table

Status
Not open for further replies.

celeron895

Programmer
Jan 29, 2002
81
US
In MS SQL Server you use this statement:

SELECT * INTO MYTABLECOPY FROM MYTABLE

Is there an equivalent statement in Pervasive 7.0?
 
No. There is no direct equivalent statement. You could probably a select as a subquery for an insert like:
insert into table (select * from oldtable). You'll need to look up the exact syntax since 7.0 is an older product and I don't use it anymore.


info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
 
My problem is, the table isn't even created yet. How do I create a copy of an existing table? There is a table MyTable, and I want an exact copy of the structure (MyTableCopy). I am not worried about the data.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top