我现在设计一种方式,我是将每天的信息保存在一个文本文件中比如(2003-11-08),,
现在有一个问题,当我查询从2003-11-01到2003-12-07的数据,
怎么样将这里的数据导入到表中,
现在有一个问题,我怎么样去寻找这些文本文件中。。

解决方案 »

  1.   

    StrSelect:='Select * from 人事表 where 出生年月 >%e and 出生年月 < %e';
    StrSelect:=Format(StrSelect,[20003-11-01, 2003-12-07]);
      

  2.   

    把文件導入時候命名為20031101這樣的格式可以 阿
    在db中只存放文件名字.
    StrSelect:='Select * from 人事表 where 出生年月 >%e and 出生年月 < %e';
    後得到您選擇的範圍,這利用這裡到相應的地方找文件
      

  3.   

    把文件導入時候命名為20031101這樣的格式可以 阿
    在db中只存放文件名字.
    StrSelect:='Select * from 人事表 where 出生年月 >%e and 出生年月 < %e';
    adoquery.close;
    adoquery.sql.clear;
    adoqueyr1.sql.add(strselect);
    adoquery.open ;
    後得到您選擇的範圍,這利用這裡到相應的地方找文件
    while not adoquery.eof 
    begin
       if fileexists(adoquery.fieldbyname('日期欄位').asstring) then
            讀文件.
    end;