0

enter image description here

I create a table and wanted to drop the table, but i keep getting error code ORA-00903 and i am using the admin account.

2 Answers 2

0

drop table "Engineers" - you've created a Case Sensitive object name, or someone has, and now you have to deal with it going forward anytime you want to work with it.

When creating things in Oracle, best not to quote the object names.

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 

Run that -

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.
0
0

use the following key drop for deleting table

drop table tablename
1
  • i try using drop but i still get an error that the table or view does not exist error code 00942
    – Franklin
    Commented Oct 29, 2020 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.