Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert in first record
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01429340
Message ID:
01429344
Views:
65
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform