Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a duplicate table with SQL statement
Message
De
02/10/2001 16:58:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Creating a duplicate table with SQL statement
Divers
Thread ID:
00563306
Message ID:
00563306
Vues:
46
Hello everyone

I'm using this select command:

select sum(ansdur),sum(retaildur),sum(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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform