BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

tadotable.insert

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
KonZa
Guest





PostPosted: Mon Aug 09, 2004 11:09 am    Post subject: tadotable.insert Reply with quote



hi there:

I wonder what will happend to the final table when doing an inserting in
the middle. I mean. say you traverser the table with Next() some
rows..then you insert a new row.

will that be the same as issueing a INSERT SQL sentence?

--
[Tío KonZa]
Back to top
Mario *LigH* Rohkrämer
Guest





PostPosted: Wed Aug 11, 2004 8:53 am    Post subject: Re: tadotable.insert Reply with quote




"KonZa" <spam_me (AT) ciudad (DOT) com.ar> schrieb im Newsbeitrag
news:opscgo97quoy2s93 (AT) pchuevo (DOT) ..
Quote:
hi there:

I wonder what will happend to the final table when doing an inserting in
the middle.

Please do not imagine a beginning, middle or end of a table.

TADOTable.Insert or SQL statement "INSERT INTO" will either append a dataset
row, or maybe overwrite a dataset row which was previously deleted and still
exists "tagged as deleted" to efficiently use database file space.

But most database management systems will definitely not move all the
remaining rows from the cursor forward to make space for a new row to be
inserted at the cursor - try to imagine the required time and amount of
harddisk access! (The only exception might be "clustered indexes" as
documented e.g. in MS SQL Server 2005 Abridged BOL, where the datasets will
become sorted by the value of that field(s).)

In general, in a database table, there is a native order of datasets, where
the database server found it most efficient to insert a dataset. Most
usually, new datasets are appended to a table's end (any other way would be
too time consuming).



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.