Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a duplicate table with SQL statement
Message
 
 
To
02/10/2001 16:58:35
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00563306
Message ID:
00563312
Views:
18
>Hello everyone
>
>I'm using this select command:
>
>
select sum(ansdur) as AnsDur,sum(retaildur) as RetailDur, ;
  sum(retailcost) as RetailCost from myTable where .... ;
  into table mynewTable.dbf
>
>The problem is that the field names in "mynewTable.dbf" are different from "myTable.dbf".
>"myTable.ansdur" is now "mynewTable.sum_ansdur"
>"myTable.retaildur" is now "mynewTable.sum_retail"
>"myTable.retailcost" is now "mynewTable.sum_retai2"
>
>Is there a way creating "mynewTable" with exact fields as "mytable" by using tha above SQL command?
>
>Thanks

Yes, see changes embedded in your SQL.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform