Oracle10g 创建新数据库 test1,登陆Scott/tiger 
使用SQLPLUS创建 AAA表,
create table AAA(name char(10),age char(10);成功使用delphi7
SmartQuery1.SQL.Clear;
SmartQuery1.SQL.Add('insert into aaa (name,age)values("Kingf","23")');
smartquery1.Open;执行后出错提示:ora-00984 columnnot allowed here
谁知道嘛原因?在线等。

解决方案 »

  1.   

    ora-00984 columnnot allowed here//列在此处不允许
    把你的表结构贴出来你的age是varchar2类型?
      

  2.   

    名称                                      是否为空? 类型
    ----------------------------------------- -------- ----------
    NAME                                               CHAR(10)
    AGE                                                CHAR(10)
      

  3.   

    ''King''   not  "King"
    我犯了个低级错误。
      

  4.   

    修改后 数据可以填入了。
    但是返回错误提示 
    SQL statament doesn't return rows
      

  5.   

    smartquery1.ExecSQL;//有没有这样的方法smartquery1.Open;//通常返回一个结果集,而你的是执行一个sql