比如說用ADOQuery返回的數據集(table: Customer)在本地c盤生成一個xxx.db的數據庫文件
解决方案 »
- delphi7,关于焦点的问题-->期待解决!!!
- if( ((ADOQuery1.实收货款1+ADOQuery1.实收货款2)<>0),(ADOQuery1.实收货款1+ADOQuery1.实收货款2),'')是什么 意思?
- 颜色计算
- 各位高手求助关于Application.CreateForm方面的问题
- 找良方!!!!!!!!!!!!!
- 各位好!
- 怎么才可以把BDE分离出来单独安装~谢谢
- 我写了一个打印控制程序,请提宝贵意见:
- 用QuickRep作报表时总计与小计的显示
- 谁可以告诉我怎样做出嗅探器程序呢?
- ●【100分】求救关于byte问题???急,在线立刻给分
- RAVE报表错在哪??A component named dataview1ID already exists.
{set up database component}
ABSDatabase1.DatabaseName := 'emp_db';
ABSDatabase1.DatabaseFileName := 'c:\data\employee_db.abs'; {set up table component}
ABSTable1.DatabaseName := 'emp_db';
ABSTable1.TableName := 'employee'; with ABSTable1 do
begin
{specifying table fields}
with FieldDefs dobegin
Clear;
Add('EmpNo',ftAutoInc,0,False);
Add('LastName',ftString,20,False);
Add('FirstName',ftString,15,False);
Add('PhoneExt',ftString,4,False);
Add('HireDate',ftDate,0,False);
Add('Salary',ftCurrency,0,False);
end;
{specifying table indexes}
with IndexDefs do
begin Clear;
Add('idxPrimary','EmpNo',[ixPrimary]);
Add('idxByLastNameFirstName','LastName;FirstName'
,[ixCaseInsensitive]);
end;
end; {create the database}
with ABSDatabase1 do
{if database file doesn't exist}
if not Exists then
CreateDatabase; {and create the table}
with ABSTable1 do {if table doesn't exist}
if not Exists then
CreateTable;