Вниз
Скачать: 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.012 c
3-76350
baracuda
2003-03-04 12:04
2003.03.24
DBgrid


14-76674
Igor_thief
2003-02-28 18:35
2003.03.24
Сканирование


3-76278
Anton.
2003-03-04 09:32
2003.03.24
Сверка DBF и Oracle


14-76613
hatchy
2003-03-04 12:03
2003.03.24
Хрен знает какая тема..


14-76568
Shaman
2003-03-06 13:08
2003.03.24
Старая проблема под новым соусом.




   Наверх