没用过
我一直直接用SQL
你是不是没有设好参数,使得ADO是非写入

解决方案 »

  1.   

    query返回的数据有时是只读的,特别是在关联查询时
      

  2.   

    你ADOQuery返回的是不是只读数据集呀?
    以下是localsql关于select语句是否可以修改的说明。Single-table queriesQueries that retrieve data from a single table are updatable provided that:There is no DISTINCT key word in the SELECT.
    Everything in the SELECT clause is a simple column reference or a calculated column, no aggregation is allowed. Calculated columns remain read-only.
    The table referenced in the FROM clause is an updatable base table.
    There is no GROUP BY or HAVING clause.
    There are no subqueries in the statement.
    There is no ORDER BY clause.The read-only effect of an ORDER BY clause is negated and the query updatable if the ORDER BY clause uses a single column and there is a dBASE single-column primary or secondary index based on that same field. dBASE compound (expression) indexes will not negate the read-only effect of an ORDER BY clause. A Paradox single- or multi-field primary index will make the query updatable if the ORDER BY uses exactly the same columns (in the same order) as the index. Paradox secondary indexes will not negate the read-only effect of an ORDER BY clause.Multi-table queriesAll queries that join two or more tables will produce a read-only result set.
      

  3.   

    重新放个dbedit上去,连接,看看是不是行了。不然的话是SQL或adoquery的原因。
      

  4.   

    可能是你的DataSet的AutoEdit为False,或者是你在它的AfterEdit中加入了提交代码
      

  5.   

    select 语句的多表连接查询是不能modi的,有了GROUP字段也不能修改。