你创建的表是"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
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
解决方案 »
- oracle 10g 透明网关访问 sql server2008查询没有反应
- ORACLE PLSQL---------->MYSQL STORED PROCEDURE
- 在vs2008里的服务器资源管理器里如何连接到远程oracle服务器
- 今天去千橡面试, 被问到一个关于数据库设计的问题,没答好,哪个高手来指导一下?
- 新手请教
- 执行alter table ... shrink space时出现的错误
- 求sql语句
- Oracle8i在命令提示符下的导入
- 如何对oracle中select并order出的数据集自动加入1、2、……序号?
- 菜鸟求助!
- 如何读取记录的前n条记录(select)
- 我在xp下装得8i,不知道xp从哪儿看服务啊?谁知道?我看不见管理工具啊?有没有命令查看啊?
sqlplus编辑起来是不太方便,可以在别的文本编辑器中编辑,
copy到sqlplus中执行
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
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~~~
insert into "countries" ("country_id","country_name","country_subregion","country_region")
values('cn','china pr','eastern asia','asia');
表名加引号。
正常建立表的话,不应该有这个错误