Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting a row into the middle of a table
Message
From
14/06/2000 20:10:06
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
14/06/2000 16:44:28
Erin Eby
Mission Critical Software
Gainesville, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00380446
Message ID:
00380515
Views:
29
Erin,

From Hacker's Guide (Granor & Roche):

INSERT adds records to the current table at the current record pointer position. INSERT is almost always a bad idea. This command is part of FoxPro's Xbase legacy and generally leads to bad code. In all our experience, we've only found one situation where using INSERT was a good idea—more on that below.

Don't confuse this INSERT command with the SQL INSERT command, which is very useful.

Used by itself, INSERT is much like APPEND by itself, but requires exclusive access

If using an index (like the others have mentioned) does not do what you want, why do you need to have the new record in the middle? Are you perhaps using RECNO() as the PK?



>I am trying to "append" a new record into a table...however, I would like it to be inserted into the middle of the table instead of the end. Is this at all possible? TIA :)
Previous
Reply
Map
View

Click here to load this message in the networking platform