delphi Paradox数据库如何设置第二索引
1个回答
2013-11-11
展开全部
NewTbl:= TTable.create(self);
NewTbl.DatabaseName:= 资料库名称
NewTbl.TableName:= 'TABLE.DB';
NewTbl.Open;
try
if (NewTbl.IndexDefs.GetIndexforFields('Customer;Name',false) = nil) then
NewTbl.AddIndex('ByCustomer','Customer;Name',[ixCaseInsensitive]);
finally
NewTbl.Close;
NewTbl.Free;
end;
NewTbl.DatabaseName:= 资料库名称
NewTbl.TableName:= 'TABLE.DB';
NewTbl.Open;
try
if (NewTbl.IndexDefs.GetIndexforFields('Customer;Name',false) = nil) then
NewTbl.AddIndex('ByCustomer','Customer;Name',[ixCaseInsensitive]);
finally
NewTbl.Close;
NewTbl.Free;
end;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询