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

Подскажите, как в runtime создать индекс для таблицы paradox?   Найти похожие ветки 

 
novill ©   (2003-05-21 15:46) [0]



 
Max Zyuzin ©   (2003-05-21 16:16) [1]

Индексы - это весчь которую надо продумывать и создовать на этапе планирования, а ни как не в рантайме... ИМХО.


 
Stas ©   (2003-05-21 16:32) [2]

Индекс создать можно. В Helpe BDE32.hlp есть пример.
Вот он:
rocedure fDbiAddIndex3(Tbl: TTable);

var
NewIndex: IDXDesc;
begin
if not Tbl.Exclusive then
raise EDatabaseError.Create
("TTable.Exclusive must be set to true in order to " +
"add an index to the table");
with NewIndex do begin
szName := "NewIndex";
iIndexId := 0;
bPrimary := False;
bUnique := TRUE;
bDescending := True;
bMaintained := True;
bSubset := False;
bExpIdx := False;
iFldsInKey := 1;

aiKeyFld[0]:= 2;
bCaseInsensitive := True;
end;
Check(DbiAddIndex(Tbl.dbhandle, Tbl.handle, PChar(Tbl.TableName), szParadox, NewIndex, nil));
end;
Подробнее смотри в BDE32.hlp


 
Verg ©   (2003-05-21 21:29) [3]


with UpGSql.SQL do
begin
Clear;
Add("Create index "+IndexName+" on "+TabName+" ("+FieldNames+")");
end;
UpGSql.ExecSQL;



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

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



Память: 0.45 MB
Время: 0.012 c
6-26639
vinnety
2003-04-08 21:35
2003.06.09
Сокеты в Дельфи


3-26411
equites
2003-05-21 18:22
2003.06.09
Фильтрация (чуть более, чем обычно)


14-26737
neuro
2003-05-22 17:52
2003.06.09
STL 4 delphi


1-26556
OlegM
2003-05-26 07:10
2003.06.09
Как пользоваться ActionList


3-26379
The
2003-05-19 13:58
2003.06.09
---|Ветка была без названия|---




   Наверх