Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert field in table's field list
Message
De
03/10/2003 04:10:46
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00834561
Message ID:
00834675
Vues:
27
I'm sure you remembered bubble sort from school.

suppose your field names: aa,bb,cc
your new field : dd
you want to insert dd after bb

alter table mytab add column dd c(10)
alter table mytab add temp i
use mytab
repl temp with cc all
use
alter table mytab drop column cc
alter table mytab add column cc
use mytab
repl cc with temp all
use
alter table mytab drop column temp

I just write that. I didn't try. Maybe some syntax mistakes.
-------------------------
this the basic. You need them for automation that:
-for/next
-fcount()
-field()
-and use bubble sort :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform