c/s数据库编程中,出现“对于造型说明无效的字符值“错误,怎么解决??急。。

解决方案 »

  1.   

    看看是不是赋进空值了,不是NULL是‘’。
      

  2.   

    今天解决了,原来是用"fckbbtable.batchmove(kctable, batappend)",后来用  editquery.close;
      editquery.open;
      kctable.first;
      while not kctable.eof do
      begin
        editquery.append;
        for iCount:=0 to kctable.fieldcount-1 do
        begin
          lField:=editquery.FindField(kctable.fields[iCount].FieldName);
          if lField<>nil then
            lField.Value:=kctable.fields[iCount].Value ;    end;
        editquery.post;
        kctable.next;
      end;
      editquery.ApplyUpdates;
      editquery.CommitUpdates ;  这是第一次提问题,谢谢 yansea(思宏)