Answer the question
In order to leave comments, you need to log in
How to get a list of tables in a database from program code?
Good afternoon, please tell me how to use Spring to request a list of existing tables from the connected database? It turns out that the list of these tables in the database is not static, and when working, I would like to check that such a table exists.
Answer the question
In order to leave comments, you need to log in
If the question is still relevant, then the easiest option is, depending on what kind of database you have, see how to retrieve a list of all tables through SQL through a query, and then iterate over it:
- for example, as suggested here https://stackoverflow .com/questions/53592533/list-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question