I know no one but a few works, unlike MySQL, where we have this IF EXIST facility.
What are you doing, try connecting to the database if it were not for its probable absence. And after a successful join, you can make a simple choice, for example, SELECT count (*) FROM TABLE_NAME, to find out if the table exists or not. You will be subject to an exception. Even in the official Sun example, I saw a similar work.
At Oracle, we have vocabulary tables to know about database objects. I doubt we have something like this in Derby.
[Edited]
Well, I found that there is a way to find out if a table exists. Try SELECT tablename FROM SYSTABLES. This is to check the existence of the table, to check the database, you may need to do something like this, I explained above.
Adele ansari
source share