Search notes:

ORA-00903: invalid table name

Table name missing after LEFT JOIN

A scenario that provokes ORA-00903: invalid table name is an SQL statement where the name of a table is missing (forgotten) after a left join clause.
Create two test tables:
create table tq84_A (id number);
create table tq84_B (id number);
The following (invalid) SQL statement throws ORA-00903: invalid table name:
select
   *
from
   tq84_A a                left join
   tq84_B b on a.id = b.id left join
where
   a.id = 4;
Cleaning up:
drop   table tq84_A;
drop   table tq84_B;
Compare this error with ORA-00923: FROM keyword not found where expected.

RENAME TABLE x TO y

Unlike the truncate table statement, the rename statement does not require the object type (i. e. table) and the following statement also throws ORA-00903: invalid table name:
rename table x to y;
Better:
rename x to y;

See also

Other Oracle error messages

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759429566, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-00903_invalid-table-name(72): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78