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语句
谁说不能写Insert, Delete, Update????
写了后用exesql执行。
前天也有个网友这样教我来着。如果能写的话,该怎么用呀?