simpledateset.excute;后抛出ORA-00911:无效字符的错误信息,但是我把insert语句拿到sql plus中去执行就没有问题?这是为什么?

解决方案 »

  1.   

    insert into t_hwfl_1(t_hwdm,t_hwmc) values('111','11111');t_hwdm,t_hwmc这两个字段都是varchar2的
      

  2.   

    str:string;
    ...
     str :=  'insert into t_hwfl_1(t_hwdm,t_hwmc) values('+quotedstr('111');
     str := str+','+quotedstr('11111')+')';....
    adoquery1.sql.add(str);
    ....
    即可。
      

  3.   

    fansnaf(投币一元),你说的还是不好用
    我用的是dbexpress
    insert into t_hwfl_1(t_hwdm,t_hwmc) values(:hwdm,:hwmc)DM.sys_inst_hwflSDS.active:=false;
    DM.sys_inst_hwflSDS.DateSet.params.ParamByName('hwdm').AsString:=self.ehwdm.text;
    DM.sys_inst_hwflSDS.DateSet.params.ParamByName('hwmc').AsString:=self.ehwmc.text;
    DM.sys_inst_hwflSDS.Excute;
    执行后抛出EDatabaseError错误,信息是:ORA-00911:无效字符奇怪死了