你创建的表是"countries",而不是countries。在sql*plus中要修改sql语句可以调用edit命令,在文本中修改,也可以利用命令insert into countries
  2  (country_id,country_name,country_subregion,country_region)
  3  values('cn','china pr','eastern asia','asia')
  4  ;
例如想修改第3行的cn为en
SQL> l3  SQL> c/cn/en

解决方案 »

  1.   

    为什么要加引号?估计是引号的问题。
    sqlplus编辑起来是不太方便,可以在别的文本编辑器中编辑,
    copy到sqlplus中执行
      

  2.   

    不加引号oracle默认为大写,现在控制它的大小写。SQL> create table "countries"
      2   ("country_id"char(2)not null,
      3    "country_name"varchar2(40)not null,
      4    "country_subregion"varchar2(30),
      5    "country_region"varchar2(20)not null);Table created
    SQL> insert into "countries"
      2  ("country_id","country_name","country_subregion","country_region")
      3  values('cn','china pr','eastern asia','asia');1 row insertedSQL> select * from "countries";country_id country_name                             country_subregion              country_region
    ---------- ---------------------------------------- ------------------------------ --------------------
    cn         china pr                                 eastern asia                   asia
      

  3.   

    SQL> insert into countries
      2      (country_id,country_name,country_subregion,country_region)
      3      values('cn','chinapr','easternasia','asia')
      4      ;
        (country_id,country_name,country_subregion,country_region)
                                                   *
    ERROR 位于第 2 行:
    ORA-00904: "COUNTRY_REGION": 无效的标识符我已经把countries的引号去掉了。
    怎么这么难啊,急死了。wuwu~~~
      

  4.   

    谢谢大家,尤其谢谢 beckhambobo(beckham)
      

  5.   

    在sqlplus中,单引号和双引号的具体使用可以说说吗?
      

  6.   

    up   
    insert into "countries"    ("country_id","country_name","country_subregion","country_region")
        values('cn','china pr','eastern asia','asia');
    表名加引号。
      

  7.   

    desc 一下你的表结构吧, DESC TABLENAME
    正常建立表的话,不应该有这个错误
      

  8.   

    同意beckhambobo(beckham),当然你也可以加上双引号来控制表名的大小,不过以后再应用程序中再对该表操作时就不方便了,还是不要这样做得好。