Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert in first record
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01429340
Message ID:
01429344
Vues:
64
>I need insert data in first record of a cursor
>But it inserts always on bottom
>
>I am using commands below
>
>(this record will be the header of .txt file which I will export the cursor to)
>
>
>SELECT al_internet
> GO top
>INSERT INTO al_internet (username, password, firstname, lastname, email,city,phone1,address ) VALUES ( "username", "password", "firstname", "lastname", "email","city","phone1","address")


WHY?
INSERT INTO is a SQL command and it ALWAYS inserts at the end of the file.
What you look for is INSERT BEFORE but for that you need table to be opened EXCLUSIVE and it has to have NO indexes.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform