group是数值型吧。
执行的时候是用open还是execsql

解决方案 »

  1.   

    group是数值型      execsql 
      

  2.   

    update smart set [group]=256  
      

  3.   

    你怎么用group做字段名?
    用iGroup不是就好了
      

  4.   

    with MyQuery do
    begin
     Close;
     SQL.Clear;
     SQL.add('select * from MyTable ');
     Open;
     for i := 0 to recordcount - 1 do
     begin
      fieldbyname('group').asinteger(asfloat) := 256;
     end;
    end;
      

  5.   

    to zswang(伴水)(伤心中) :
        [group] 不行的,    是别人设计的数据库,
      

  6.   

    group应该是关键字吧。
    不过,我想既然都能用了,你看看人家是怎么写记录的。
    不行的话,可以试试EDIT。POST。
      

  7.   

    update smart set 'group'=256
      

  8.   

    to songlichao() :
        你的办法应该可以的,去试去了!
      

  9.   

    //我已经试出来了!真费劲
    update a1 set a1."group" = 256
      

  10.   

    update a1 set [group]=256
    group 是关键字,要用[]引起来才能让系统认为是你自己的字段
      

  11.   

    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256
      

  12.   

    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256
    update smart set smart."group"=256