Oracle 数据库 SQL 开发人员 - 错误 - 删除 TABLE

Oracle database SQL developer - ERROR - DROP TABLE

我创建了一个 table 并想删除 table,但我不断收到错误消息 代码 ORA-00903,我正在使用管理员帐户。

使用以下键 drop 删除 table

drop table tablename

drop table“工程师”- 您已经创建了一个区分大小写的对象名称,或者有人创建了,现在您必须随时处理它。

在 Oracle 中创建东西时,最好不要引用对象名称。

create table "Engineers" (a integer); -- not a good practice in Oracle...for reasons you have already seen

drop table engineers;
drop table Engineers;
drop table ENGINEERS;
drop table "Engineers"; -- this will work 

运行 那 -

Table "Engineers" created.


Error starting at line : 3 in command -
drop table engineers
Error report -
ORA-00942: table or view does not exist
00942. 00000 -  "table or view does not exist"
*Cause:    
*Action:

Error starting at line : 4 in command -
drop table Engineers
Error report -
ORA-00942: table or view does not exist
00942. 00000 -  "table or view does not exist"
*Cause:    
*Action:

Error starting at line : 5 in command -
drop table ENGINEERS
Error report -
ORA-00942: table or view does not exist
00942. 00000 -  "table or view does not exist"
*Cause:    
*Action:

Table "Engineers" dropped.