Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Divide table
Message
 
À
20/02/2005 08:01:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 5
Database:
Visual FoxPro
Divers
Thread ID:
00988673
Message ID:
00988675
Vues:
54
>hi all,
>i need help to divide my table to 12 tables as month12004,month22004....to 122004. where field(month=1 , 2 , ...12)
>my table name is combined2004 and i have field month have 1,2,3....12
>
>thanks.
FOR p_count = 1 TO 12
    file_name = "month"+ALLTRIM(STR(p_count))+"2004"
    SELECT * FROM combined2004 WHERE month = p_count INTO TABLE (file_Name)
NEXT
CLOSE ALL
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform