程序调用:
QRySum.SQL[7]:='where Toll_datetime>='+''''+FormatDatetime('yyyy-mm-01',DatetimePicker1.Date)+''''+' and Toll_datetime<='+''''+Datestr+'''';请问,这个SQL[7]指的是什么??

解决方案 »

  1.   

    猜想SQL应试是个字符串数组吧,就好比是TStrings.String[]一样。纯属猜想。
      

  2.   

    回 bxyqt我一开始也是这样理解,但我看程序其他用到sql[n]的地方,如果把sql[n]=str里面的str放到SQL语句的第N行,那完全不对呀有的时候N是select字段的行数,而str一般都条件限定变量
      

  3.   

    为什么不写个SQL语句,然后把sql[7]打印出来看看呢?
      

  4.   

    类型定义
      TADOQuery = class(TCustomADODataSet)
      private
      FSQL: TStrings; 
      published 
        property SQL: TStrings read GetSQL write SetSQL;
      end;