Вниз
Скачать: CL | DM;

почему у меня при использование Table1.Insert; новая строка добо   Найти похожие ветки 

 
Ya_andrei ©   (2003-03-06 18:42) [0]

Подскажите пожалуйста почему у меня при использование Table1.Insert; новая строка добовляется всегда в конец базы хотя я устонавливаю
курсор с помощи Table1.MoveBy(str); где str номер запеси с начала
базы

Table1.First;
Table1.MoveBy(str);
Table1.Insert;


 
Hint ©   (2003-03-06 18:53) [1]

Справка по Дельфе:
For Paradox tables with primary indexes, the record is inserted into the dataset in a position based on its index.

For Paradox tables without primary indexes, the record is inserted into the dataset at the current position.

For dBASE, FoxPro, and Access tables, the record is physically appended to the dataset at the end. If an index happens to be active, the new record may appear in a position relative to the index, but the record is still actually stored at the end of the table.

For SQL databases, the physical location of the insert is implementation-specific. For indexed tables, the index is updated with the new record information.


 
Andrey ©   (2003-03-06 20:02) [2]


> Подскажите пожалуйста почему у меня при использование Table1.Insert;
> новая строка добовляется всегда в конец базы

А подумать... А как бы это было иначе, не в конец базы, а в середину... А представь что будет если в Table1 1000000 записей, а ты вставляешь в середину... Подумай как такое сделать и с какой скоростью это работать будет...

P.S. Ответ всегда где-то рядом, просто иногда лень подумать и help почитать.


 
blackman ©   (2003-03-06 22:02) [3]

Индексы сделай и будешь видеть ее там где захочешь



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.014 c
14-76595
Tornado
2003-03-07 11:29
2003.03.24
Тонировка стекол


14-76602
Burg
2003-03-07 13:18
2003.03.24
Домины


3-76341
SZap
2003-03-05 16:42
2003.03.24
Вопрос по TQuery


14-76665
Scorpx
2003-03-08 19:22
2003.03.24
Время


14-76572
Sergei
2003-03-09 10:44
2003.03.24
Сохранение настроек проекта




   Наверх