how to check if there is no database schema 1

how to check if there is no database schema

DATABASE SCHEMA: is a chart that shows all the tables and how they are
related to each other.
• If there is no schema:
1. Oracle ===> SELECT table_name FROM user_tables;
2. MySQL ===> show tables;

Here is what the above code is Doing:
1. We are creating a connection to the database.
2. We are creating a cursor object.
3. We are executing a query.
4. We are fetching the results of the query.
5. We are printing the results.
6. We are closing the connection.

Similar Posts