Home > database > Oracle if table 1 does not exist the lookup table 2
Oracle if table 1 does not exist the lookup table 2
Time:09-16
This is a for example, although there is no into the when the second but still will determine whether the conditions of existence of the database to quote ORA - 00942 error,
I meet a problem now, is the product has two versions of the data, one is in table 1, an existing table 2, the inside of the need to remote to query data, although written judgment, matches the version will enter the query corresponding table, but will still be submitted to the ORA - 00942 error, headache, Guide for BBS bosses
CodePudding user response:
Consider using PL/SQL anonymous block or application code to solve... For decision table does not exist, is steps before the execution of the SQL