Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert records into a table
Message
 
To
16/05/1999 02:03:18
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00219408
Message ID:
00219410
Views:
16
>Hi all,
>SQL INSERT INTO adds a record to the end of a table. How can I
>insert a record in between records in a table ?
>Thanks.
>
>Kam.

Kam,

With indexes available it is never necessary to insert a record in a specific location. Reliance of physical location of records is a poor relational design anyway as record nmbers can and do change over time.

The old xBase INSERT command did what you are looking for but it was equivalent to SET SLOW ON. This was because it copied the entire file up to the insertion point, then added the enw record, then copied the rest of the file. After that is erased the original and renamed the new file to the old name, it then recreated all of the indexes for the newly named file.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform