既然TADODataSet只能写查询语句,不能写Insert, Delete, Update语句,
那不是很有用,只用TADOQuery不就可以了

解决方案 »

  1.   

    既然TADODataSet只能写查询语句,不能写Insert, Delete, Update语句,
    谁说不能写Insert, Delete, Update????
    写了后用exesql执行。
      

  2.   

    我从来只用ADODataSet  , 那我不是什么也做不成了
      

  3.   

    Use the TADODataSet component's CommandText property to retrieve the dataset, specifying either a table name or an SQL statement (SELECT only). TADODataSet is not capable of issuing Data Manipulation Language (DML) SQL statements that do not return result sets (like DELETE, INSERT, and UPDATE). For this use a component like TADOCommand or TADOQuery.也就是说要用到产生结果集的sql语句必须用TADOCommand or TADOQuery控件,用TADODataSet 只能写select语句
      

  4.   

    TADOCommand 和TADODataSet 配合着使用,我觉的特别棒!
      

  5.   

    liuhelin(鹤林),theone_jxm()  :到底说的是对的还是错的呀,我怎么没有看见TDAODataSet有execSql方法呀,
    前天也有个网友这样教我来着。如果能写的话,该怎么用呀?