怎么会不可以呢?
Table:=TTable.Create(Self);
with Table do begin
DatabaseName:=ExtractFilePath(Application.ExeName);
TableName :='Declk.db';
TableType :=ttDefault;
with FieldDefs do begin
add('Id',ftString,StrToInt(TcDeh.text),false);
add('Name',ftString,StrToInt(TCldm.text),false);
add('sl',ftFloat,0,false);
end;
CreateTable;
Active :=True;
但是我要将id设置为关键字段,该怎么办?