Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert new record
Message
De
13/03/2005 08:15:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
13/03/2005 08:10:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 5
Database:
Visual FoxPro
Divers
Thread ID:
00995252
Message ID:
00995283
Vues:
16
The INSERT command still works, "for backward-compatibility". But I think we agree that it is not convenient to use it.

>Mohammed,
>
>you must learn that you can NOT insert records in the middle of the table, the new record will ALWAYS end up as the last record, and you shall also be happy for that! If you need the new record at a particluar place, you use an index for that!
>
>In the old dbase days, there was a command for inserting records in the middle of the table, but this command luckily was not duplicated in Fox. In the background this command created a set of new tables which were merged and renamed to the name of the original table afterwards. This ment that this command did not work in a multiuser environment, and could be EXTREMELY slow.
>
>>hi,
>>thank you for reply,
>>but, i see at ut somthing as
>>insert at recono()....
>>this what i need to small table.
>>any idea.
>>>>hi all,
>>>> i need to insert new record between records at mytable.
>>>>any help
>>>>thanks.
>>>
>>>Use an index to control the logical record position. The record will be appended at the end of the table, but the index will make it appear at a position which depends on the index expression.
>>>
>>>Note: The INSERT command can be used to do what you are asking for, but: (1) This only works if the table has no indices, and (2) This is not good practice, since for a large table, the process will be very slow.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform