我还是创建不了数据库,这是源码帮帮忙给看一下
Try
TableJBTable.active:=true;
Except
With TableJBTable Do
begin
with FieldDefs do
begin
Clear;
BeginUpdate;
Add('WorkNo', ftString, 8, True);
For I:=1 To 31 Do
begin
Add(Day, ftString, 20, False);
end;
Add('ZLTQ',ftfloat,0,False);
Add('ZRTQ',ftfloat,0,False);
Add('PCJB',ftfloat,0,False);
Add('YCJB',ftfloat,0,False);
Add('JRJB',ftfloat,0,False);
EndUpdate;
end;
create(Nil);
再问一下如何创建索引呢?