...... 
with ADOQuery1 do
  begin
    Close;
    SQL.Clear;
    SQL.Add('Select * from Subs_stat');
    OPEN;
   // ExecSQL; 此条多余,返回结果不需要执行SQL,打开就可。  end;
end;
还有你没讲错误是什么样的。

解决方案 »

  1.   

    我记得Parameters需要先建立吧,有段时间没用delphi记不清了
      

  2.   

    最后一段Open了,还执行干什么中间那段ExecSQL前,应该判断一下参数跟数据库字段是否一致,不一致的话执行Insert操作很容易出错。
      

  3.   

    Note: For SELECT statements, call Open instead of ExecSQL or set the Active property to true.To speed performance, an application should ordinarily prepare the query by setting the Prepared property to true before calling ExecSQL for the first time.
      

  4.   

    SQL.Add('Insert Subs_stat values(:a,:b,:c,:d,:e,:f,:g,:h,:i,:j,:k,:l,:m)');缺少东西“into”